[svn:parrot] r41622 - branches/pcc_reapply/src/pmc
whiteknight at svn.parrot.org
whiteknight at svn.parrot.org
Fri Oct 2 23:45:20 UTC 2009
Author: whiteknight
Date: Fri Oct 2 23:45:18 2009
New Revision: 41622
URL: https://trac.parrot.org/parrot/changeset/41622
Log:
[pcc] A fix to Context PMC. The ->current_sig wasn't being marked, which caused it to be prematurely collected, and then bad things happen when other parts of code try to access it again.
Modified:
branches/pcc_reapply/src/pmc/context.pmc
Modified: branches/pcc_reapply/src/pmc/context.pmc
==============================================================================
--- branches/pcc_reapply/src/pmc/context.pmc Fri Oct 2 22:28:08 2009 (r41621)
+++ branches/pcc_reapply/src/pmc/context.pmc Fri Oct 2 23:45:18 2009 (r41622)
@@ -69,6 +69,7 @@
Parrot_gc_mark_PMC_alive(INTERP, ctx->current_object);
Parrot_gc_mark_PMC_alive(INTERP, ctx->current_namespace);
Parrot_gc_mark_PMC_alive(INTERP, ctx->results_signature);
+ Parrot_gc_mark_PMC_alive(INTERP, ctx->current_sig);
if (!ctx->n_regs_used)
return;
More information about the parrot-commits
mailing list