[svn:parrot] r43885 - trunk/src/interp
bacek at svn.parrot.org
bacek at svn.parrot.org
Thu Feb 11 11:14:41 UTC 2010
Author: bacek
Date: Thu Feb 11 11:14:40 2010
New Revision: 43885
URL: https://trac.parrot.org/parrot/changeset/43885
Log:
Propogate GC type from parent interpreter in allocate_interpreter.
Modified:
trunk/src/interp/inter_create.c
Modified: trunk/src/interp/inter_create.c
==============================================================================
--- trunk/src/interp/inter_create.c Thu Feb 11 11:14:26 2010 (r43884)
+++ trunk/src/interp/inter_create.c Thu Feb 11 11:14:40 2010 (r43885)
@@ -184,7 +184,9 @@
IMCC_INFO(interp) = mem_allocate_zeroed_typed(imc_info_t);
interp->gc_sys = mem_allocate_zeroed_typed(GC_Subsystem);
- interp->gc_sys->sys_type = PARROT_GC_DEFAULT_TYPE;
+ interp->gc_sys->sys_type = parent
+ ? parent->gc_sys->sys_type
+ : PARROT_GC_DEFAULT_TYPE;
/* Done. Return and be done with it */
return interp;
More information about the parrot-commits
mailing list