[svn:parrot] r43859 - in trunk/src: gc interp
bacek at svn.parrot.org
bacek at svn.parrot.org
Wed Feb 10 13:22:26 UTC 2010
Author: bacek
Date: Wed Feb 10 13:22:25 2010
New Revision: 43859
URL: https://trac.parrot.org/parrot/changeset/43859
Log:
Fix previous commit - allocate interp->gc_sys in allocate_interp.
Modified:
trunk/src/gc/api.c
trunk/src/interp/inter_create.c
Modified: trunk/src/gc/api.c
==============================================================================
--- trunk/src/gc/api.c Wed Feb 10 13:06:17 2010 (r43858)
+++ trunk/src/gc/api.c Wed Feb 10 13:22:25 2010 (r43859)
@@ -259,7 +259,6 @@
{
ASSERT_ARGS(Parrot_gc_initialize)
- interp->gc_sys = mem_allocate_zeroed_typed(GC_Subsystem);
interp->lo_var_ptr = stacktop;
/*Call appropriate initialization function for GC subsystem*/
Modified: trunk/src/interp/inter_create.c
==============================================================================
--- trunk/src/interp/inter_create.c Wed Feb 10 13:06:17 2010 (r43858)
+++ trunk/src/interp/inter_create.c Wed Feb 10 13:22:25 2010 (r43859)
@@ -24,6 +24,7 @@
#include "parrot/oplib/core_ops.h"
#include "../compilers/imcc/imc.h"
#include "pmc/pmc_callcontext.h"
+#include "../gc/gc_private.h"
#include "inter_create.str"
/* HEADERIZER HFILE: include/parrot/interpreter.h */
@@ -182,6 +183,7 @@
/* Allocate IMCC info */
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;
/* Done. Return and be done with it */
More information about the parrot-commits
mailing list