summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2024-08-23 16:15:35 -0400
committerPeter Zhu <peter@peterzhu.ca>2024-08-26 09:40:07 -0400
commit80d457b4b4357d3b6a44abd0ceb67e7657bc657a (patch)
tree90e73e40ed2c58fa96b9883fa2c9c43189be627f /test/ruby
parentc3dc1322ba9f664f4c8e7451c8b18add875b8b5b (diff)
Fix object allocation counters in compaction
When we move an object in compaction, we do not decrement the total_freed_objects of the original size pool or increment the total_allocated_objects of the new size pool. This means that when this object dies, it will appear as if the object was never freed from the original size pool and the new size pool will have one more free than expected. This means that the new size pool could appear to have a negative number of live objects.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11444
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions