diff options
| author | John Hawthorn <john@hawthorn.email> | 2025-07-22 09:40:20 -0700 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2025-10-15 18:21:52 -0700 |
| commit | 45c016866c24a244d286a2db0babab1ff6867ba0 (patch) | |
| tree | 8e006f9faf9bce3276f8e62c16b32071e20e8cdb /include/ruby/io | |
| parent | 9e4a75696303812d23366d57e4381166b1f88bb1 (diff) | |
Use explicit memory orders in concurrent_set
The atomic load/store operations here should mostly be using
release/acquire semantics. This may lead to better performance than what
we had under the default seq_cst.
On x86 this may make the atomic store of hash faster, as it can avoid
xchg. On ARM the loads may be faster (depending on target CPU for the
compiler).
Reference for comparison of atomic operations
https://godbolt.org/z/6EdaMa5rG
Diffstat (limited to 'include/ruby/io')
0 files changed, 0 insertions, 0 deletions
