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

Store initial slots per size pool #8116

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

peterzhu2118
Copy link
Member

This commit stores the initial slots per size pool, configured with the environment variables RUBY_GC_HEAP_INIT_SIZE_%d_SLOTS. This ensures that the configured initial slots remains a low bound for the
number of slots in the heap, which can prevent heaps from thrashing in size.

cc. @byroot

@byroot
Copy link
Member

byroot commented Jul 25, 2023

👍

This commit stores the initial slots per size pool, configured with
the environment variables `RUBY_GC_HEAP_INIT_SIZE_%d_SLOTS`. This
ensures that the configured initial slots remains a low bound for the
number of slots in the heap, which can prevent heaps from thrashing in
size.
It's not guaranteed that the first element will always be embedded.
@peterzhu2118 peterzhu2118 merged commit 547d237 into ruby:master Jul 31, 2023
90 checks passed
@peterzhu2118 peterzhu2118 deleted the pz-size-pool-init-slots branch July 31, 2023 15:46
peterzhu2118 added a commit to Shopify/ruby-definitions that referenced this pull request Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants