diff options
| author | John Hawthorn <john@hawthorn.email> | 2025-08-20 17:47:17 -0700 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2025-09-23 10:20:21 -0700 |
| commit | c05ea920cef5991ca6163d12a436a61219a234a6 (patch) | |
| tree | 08965598817bf0164c8bd52c97733b0561dd3481 /include/ruby/internal/encoding/string.h | |
| parent | 9a5e48f4144bea6fc3e8fb82cfacf4a650d9cc9b (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
