Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix free_slots count during compaction #4831

Merged
merged 2 commits into from
Sep 15, 2021

Conversation

peterzhu2118
Copy link
Member

No description provided.

When invalidating a page during compaction, the free_slots count should
be updated for the page of the object and not the page of the forwarding
address (since the object gets moved back to the forwarding address).
gc_compact_finish may invalidate pages, which may move objects from this
page to other pages, which updates the free_slots of this page.
@peterzhu2118 peterzhu2118 merged commit a65ac2d into ruby:master Sep 15, 2021
@peterzhu2118 peterzhu2118 deleted the pz-compaction-free-slots branch September 15, 2021 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants