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

NotFound at svn.parrot.org NotFound at svn.parrot.org
Wed Jul 28 14:16:51 UTC 2010


Author: NotFound
Date: Wed Jul 28 14:16:50 2010
New Revision: 48200
URL: https://trac.parrot.org/parrot/changeset/48200

Log:
mininal refactor of Capture.mark, no functional changes

Modified:
   trunk/src/pmc/capture.pmc

Modified: trunk/src/pmc/capture.pmc
==============================================================================
--- trunk/src/pmc/capture.pmc	Wed Jul 28 07:21:49 2010	(r48199)
+++ trunk/src/pmc/capture.pmc	Wed Jul 28 14:16:50 2010	(r48200)
@@ -820,16 +820,14 @@
 */
 
     VTABLE void mark() {
-        PMC *array, *hash;
+        if (PMC_data(SELF)) {
+            PMC *array, *hash;
+            GET_ATTR_array(INTERP, SELF, array);
+            GET_ATTR_hash(INTERP, SELF, hash);
 
-        if (!PMC_data(SELF))
-            return;
-
-        GET_ATTR_array(INTERP, SELF, array);
-        GET_ATTR_hash(INTERP, SELF, hash);
-
-        Parrot_gc_mark_PMC_alive(INTERP, array);
-        Parrot_gc_mark_PMC_alive(INTERP, hash);
+            Parrot_gc_mark_PMC_alive(INTERP, array);
+            Parrot_gc_mark_PMC_alive(INTERP, hash);
+        }
     }
 
 /*


More information about the parrot-commits mailing list