summaryrefslogtreecommitdiff
path: root/include/ruby/internal/encoding/string.h
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2025-08-20 17:47:17 -0700
committerJohn Hawthorn <john@hawthorn.email>2025-09-23 10:20:21 -0700
commitc05ea920cef5991ca6163d12a436a61219a234a6 (patch)
tree08965598817bf0164c8bd52c97733b0561dd3481 /include/ruby/internal/encoding/string.h
parent9a5e48f4144bea6fc3e8fb82cfacf4a650d9cc9b (diff)
Only set ME cached flag when unset
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.
Diffstat (limited to 'include/ruby/internal/encoding/string.h')
0 files changed, 0 insertions, 0 deletions