summaryrefslogtreecommitdiff
path: root/gc.rb
diff options
context:
space:
mode:
authorPeter Zhu <peter.zhu@shopify.com>2021-09-17 14:38:06 -0400
committerPeter Zhu <peter@peterzhu.ca>2021-09-20 09:01:58 -0400
commit9770bf23b7a273246b9a6b084e79a8fb6fc1af11 (patch)
tree84b93cb20eeeeeaf85a62da25e42715762dbe7aa /gc.rb
parentb61064b821823e016e8015f3d9eeab3cf9074ccd (diff)
downloadruby-9770bf23b7a273246b9a6b084e79a8fb6fc1af11.tar.gz
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.
Diffstat (limited to 'gc.rb')
0 files changed, 0 insertions, 0 deletions