summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2020-08-24 10:53:11 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2020-08-25 10:14:10 -0700
commit326d89b7cee05b33e6f73fb293a4ae9d5af6f7f2 (patch)
tree5b202c43f68f3ebd407bb7567729a16cc98660ce /man
parent8c030b5c007fe300d78f93a5c3e29f7c44d042cb (diff)
Correctly account for heap_pages_final_slots so it does not underflow
`rb_objspace_call_finalizer` creates zombies, but does not do the correct accounting (it should increment `heap_pages_final_slots` whenever it creates a zombie). When we do correct accounting, `heap_pages_final_slots` should never underflow (the check for underflow was introduced in 39725a4db6b121c7779b2b34f7da9d9339415a1c). The implementation moves the accounting from the functions that call `make_zombie` into `make_zombie` itself, which reduces code duplication.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3450
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions