[pull] master from ruby:master#1192
Merged
Merged
Conversation
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
Guard the `RUBY_NO_FREE` environment variable which disables `xfree` behind a compile-time flag `-DRUBY_NO_FREE`. It is a debugging feature, and should not exist in production environment.
Now that the shape contains the slot capacity, we should update the shape for all objects when moving them, not just T_OBJECT.
`rb_gc_obj_slot_size` has to check the page metadata to get the slot size, which likely cause cache misses. `rb_obj_shape_slot_size` does simple arithmetic using only a few shape bits. ``` compare-ruby: ruby 4.1.0dev (2026-07-08T03:48:16Z master 01c5b2e) +PRISM [arm64-darwin25] built-ruby: ruby 4.1.0dev (2026-07-08T10:17:41Z gc-changed-slot-size 08029b0) +PRISM [arm64-darwin25] warming up. ``` | |compare-ruby|built-ruby| |:-----------------------|-----------:|---------:| |binary_concat_embedded | 5.262M| 5.707M| | | -| 1.08x|
Expand the room for all items at once before unpacking them, instead of extending it one by one.
Convert optional argument `offset` after the mandatory arguments have done.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )