mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
allow turning off GC generational mode by default by MRB_GC_TURN_OFF_GENERATIONAL; #1447
This commit is contained in:
@@ -41,6 +41,9 @@
|
||||
/* initial size for IREP array */
|
||||
//#define MRB_IREP_ARRAY_INIT_SIZE (256u)
|
||||
|
||||
/* turn off generational GC by default */
|
||||
//#define MRB_GC_TURN_OFF_GENERATIONAL
|
||||
|
||||
/* default size of khash table bucket */
|
||||
//#define KHASH_DEFAULT_SIZE 32
|
||||
|
||||
|
||||
@@ -334,8 +334,10 @@ mrb_init_heap(mrb_state *mrb)
|
||||
add_heap(mrb);
|
||||
mrb->gc_interval_ratio = DEFAULT_GC_INTERVAL_RATIO;
|
||||
mrb->gc_step_ratio = DEFAULT_GC_STEP_RATIO;
|
||||
#ifndef MRB_GC_TURN_OFF_GENERATIONAL
|
||||
mrb->is_generational_gc_mode = TRUE;
|
||||
mrb->gc_full = TRUE;
|
||||
#endif
|
||||
|
||||
#ifdef GC_PROFILE
|
||||
program_invoke_time = gettimeofday_time();
|
||||
|
||||
Reference in New Issue
Block a user