diff options
author | Peter Zhu <[email protected]> | 2021-09-17 14:38:06 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2021-09-20 09:01:58 -0400 |
commit | 9770bf23b7a273246b9a6b084e79a8fb6fc1af11 (patch) | |
tree | 84b93cb20eeeeeaf85a62da25e42715762dbe7aa /mjit_worker.c | |
parent | b61064b821823e016e8015f3d9eeab3cf9074ccd (diff) |
Fix malloc_increase is not correctly calculated
Commit 123eeb1c1a904923754ce65148dbef045b56e083 added incremental GC
which moved resetting malloc_increase, oldmalloc_increase to before
marking. However, during_minor_gc is not set until gc_marks_start. So
the value will be from the last GC run, rather than the current one.
Before the incremental GC commit, this code was in gc_before_sweep
which ran before sweep (after marking) so the value during_minor_gc
was correct.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4860
Diffstat (limited to 'mjit_worker.c')
0 files changed, 0 insertions, 0 deletions