Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jhawthorn
Copy link
Member

The same method entry may be reused in multiple caches, so once the CACHED flag is set, other Ractors may be checking for it being invalidated and we should avoid writing to the field again.

I believe there are still other race conditions on how we manipulate these flags (particularly the invalidation bit), but this should make them less frequent.

The same method entry may be reused in multiple caches, so once the
CACHED flag is set, other Ractors may be checking for it being
invalidated and we should avoid writing to the field again.

I believe there are still other race conditions on how we manipulate
these flags (particularly the invalidation bit), but this should make
them less frequent.
@jhawthorn jhawthorn force-pushed the set_method_cached_once branch from be9250f to f05100e Compare September 22, 2025 22:45
@jhawthorn jhawthorn merged commit c05ea92 into ruby:master Sep 23, 2025
86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant