summaryrefslogtreecommitdiff
path: root/ext/io/wait/lib/nonblock.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 /ext/io/wait/lib/nonblock.rb
parentb61064b821823e016e8015f3d9eeab3cf9074ccd (diff)
Fix malloc_increase is not correctly calculatedHEADmaster
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 'ext/io/wait/lib/nonblock.rb')
0 files changed, 0 insertions, 0 deletions