diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-08 21:42:20 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-08 21:42:20 +0900 |
| commit | 1e87bf6d2f5a03413ef0c9322e6a7f42d89c443f (patch) | |
| tree | cbb22cb5159334c65df447011e79cf32033bf671 /src/gc.c | |
| parent | 3b2b760ed3f67cd0e1400df50becaffb7a75a1cd (diff) | |
| download | mruby-1e87bf6d2f5a03413ef0c9322e6a7f42d89c443f.tar.gz mruby-1e87bf6d2f5a03413ef0c9322e6a7f42d89c443f.zip | |
allow turning off GC generational mode by default by MRB_GC_TURN_OFF_GENERATIONAL; #1447
Diffstat (limited to 'src/gc.c')
| -rw-r--r-- | src/gc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); |
