summaryrefslogtreecommitdiff
path: root/lib/rubygems/vendored_optparse.rb
diff options
authorJean Boussier <jean.boussier@gmail.com>2025-04-28 10:37:54 +0200
committerJean Boussier <jean.boussier@gmail.com>2025-04-30 23:32:33 +0200
commitc65991978baac17fbfd3bc09e58a35bb2e5f769e (patch)
treed8800d920172d9fcc23bfe795a991b7c49218b42 /lib/rubygems/vendored_optparse.rb
parentf55138c9e7b6c62847eb4cefbfb452233615b59f (diff)
get_next_shape_internal: Skip VM lock for single child caseHEADmaster
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 'lib/rubygems/vendored_optparse.rb')
0 files changed, 0 insertions, 0 deletions
close