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

Allocate exact space for objspace_each_objects #4547

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

peterzhu2118
Copy link
Member

We are only iterating over the eden heap so heap_eden->total_pages contains the exact number of pages we need to allocate for. heap_allocated_pages may contain pages in the tomb.

We are only iterating over the eden heap so `heap_eden->total_pages`
contains the exact number of pages we need to allocate for.
`heap_allocated_pages` may contain pages in the tomb.
@peterzhu2118 peterzhu2118 merged commit ad734a8 into ruby:master Jun 2, 2021
@peterzhu2118 peterzhu2118 deleted the pz-each-obj-optimize branch June 2, 2021 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant