diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-04-28 10:37:54 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-04-30 23:32:33 +0200 |
| commit | c65991978baac17fbfd3bc09e58a35bb2e5f769e (patch) | |
| tree | d8800d920172d9fcc23bfe795a991b7c49218b42 /spec/ruby/core/array/combination_spec.rb | |
| parent | f55138c9e7b6c62847eb4cefbfb452233615b59f (diff) | |
get_next_shape_internal: Skip VM lock for single child case
If the shape has only one child, we check it lock-free without
compromising thread safety.
I haven't computed hard data as to how often that it the case,
but we can assume that it's not too rare for shapes to have
a single child that is often requested, typically when freezing
and object.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13191
Diffstat (limited to 'spec/ruby/core/array/combination_spec.rb')
0 files changed, 0 insertions, 0 deletions
