[svn:parrot] r43858 - in trunk/src: gc interp
bacek at svn.parrot.org
bacek at svn.parrot.org
Wed Feb 10 13:06:17 UTC 2010
Author: bacek
Date: Wed Feb 10 13:06:17 2010
New Revision: 43858
URL: https://trac.parrot.org/parrot/changeset/43858
Log:
Move setting default GC type from init_gc into allocate_interpreter.
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:02:09 2010 (r43857)
+++ trunk/src/gc/api.c Wed Feb 10 13:06:17 2010 (r43858)
@@ -262,12 +262,6 @@
interp->gc_sys = mem_allocate_zeroed_typed(GC_Subsystem);
interp->lo_var_ptr = stacktop;
- /*TODO: add ability to specify GC core at command line w/ --gc= */
- if (0) /*If they chose sys_type with the --gc command line switch,*/
- ; /* set sys_type to value they gave */
- else
- interp->gc_sys->sys_type = PARROT_GC_DEFAULT_TYPE;
-
/*Call appropriate initialization function for GC subsystem*/
switch (interp->gc_sys->sys_type) {
case MS:
Modified: trunk/src/interp/inter_create.c
==============================================================================
--- trunk/src/interp/inter_create.c Wed Feb 10 13:02:09 2010 (r43857)
+++ trunk/src/interp/inter_create.c Wed Feb 10 13:06:17 2010 (r43858)
@@ -182,6 +182,8 @@
/* Allocate IMCC info */
IMCC_INFO(interp) = mem_allocate_zeroed_typed(imc_info_t);
+ interp->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