On Saturday 04 July 2009 07:48:20 Andrew Whitworth wrote:

> That error message only appears if the PMC contains metadata but is
> not flagged with PObj_is_special_PMC_FLAG. That result of that
> situation is that the metadata of the PMC (properties, etc) will not
> be marked and will be prematurely swept.

Interesting conjecture.  With that in mind, does this patch seem necessary to 
anyone?

-- c


=== src/pmc/default.pmc
==================================================================
--- src/pmc/default.pmc	(revision 39924)
+++ src/pmc/default.pmc	(local)
@@ -234,6 +234,7 @@
     PMC_metadata(self) = prop = pmc_new(interp, enum_class_Hash);
     GC_WRITE_BARRIER(interp, self, NULL, prop);
     propagate_std_props(interp, self, prop);
+    PObj_is_special_PMC_SET(self);
     return prop;
 }
 
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to