diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-04-14 06:13:00 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-04-14 06:13:00 +0900 |
| commit | 3b273243e6ad4eaae7fcb7886eb168894aaf513a (patch) | |
| tree | ba15350583b6ef42a39091ba256530d3a85e37e9 /src/gc.c | |
| parent | fc85016a322244f10262b6c46b0235f65fb3025d (diff) | |
| download | mruby-3b273243e6ad4eaae7fcb7886eb168894aaf513a.tar.gz mruby-3b273243e6ad4eaae7fcb7886eb168894aaf513a.zip | |
Change `MAJOR_GC_INC_RATIO` to 120; ref #3998
Because 200% is consumes too much memory for some cases.
Diffstat (limited to 'src/gc.c')
| -rw-r--r-- | src/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
