diff options
author | Peter Zhu <[email protected]> | 2020-08-24 10:53:11 -0400 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2020-08-25 10:14:10 -0700 |
commit | 326d89b7cee05b33e6f73fb293a4ae9d5af6f7f2 (patch) | |
tree | 5b202c43f68f3ebd407bb7567729a16cc98660ce /doc/extension.rdoc | |
parent | 8c030b5c007fe300d78f93a5c3e29f7c44d042cb (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 'doc/extension.rdoc')
0 files changed, 0 insertions, 0 deletions