[svn:parrot] r41174 - trunk/src/pmc

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Sep 9 22:26:23 UTC 2009


Author: bacek
Date: Wed Sep  9 22:26:22 2009
New Revision: 41174
URL: https://trac.parrot.org/parrot/changeset/41174

Log:
[cage] Don't try to mark not-fully-construted Continuation.

Modified:
   trunk/src/pmc/continuation.pmc

Modified: trunk/src/pmc/continuation.pmc
==============================================================================
--- trunk/src/pmc/continuation.pmc	Wed Sep  9 15:03:58 2009	(r41173)
+++ trunk/src/pmc/continuation.pmc	Wed Sep  9 22:26:22 2009	(r41174)
@@ -129,6 +129,10 @@
     VTABLE void mark() {
         Parrot_Continuation_attributes * const cc = PARROT_CONTINUATION(SELF);
 
+        /* If Continuation wasn't fully constructed yet */
+        if (!cc)
+            return;
+
         if (cc->seg)
             Parrot_gc_mark_PObj_alive(interp, (PObj *)cc->seg);
         if (cc->to_ctx)


More information about the parrot-commits mailing list