mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Change MAJOR_GC_INC_RATIO to 120; ref #3998
Because 200% is consumes too much memory for some cases.
This commit is contained in:
@@ -344,7 +344,7 @@ add_heap(mrb_state *mrb, mrb_gc *gc)
|
||||
|
||||
#define DEFAULT_GC_INTERVAL_RATIO 200
|
||||
#define DEFAULT_GC_STEP_RATIO 200
|
||||
#define MAJOR_GC_INC_RATIO 200
|
||||
#define MAJOR_GC_INC_RATIO 120
|
||||
#define is_generational(gc) ((gc)->generational)
|
||||
#define is_major_gc(gc) (is_generational(gc) && (gc)->full)
|
||||
#define is_minor_gc(gc) (is_generational(gc) && !(gc)->full)
|
||||
|
||||
Reference in New Issue
Block a user