summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2025-07-22 09:40:20 -0700
committerJohn Hawthorn <john@hawthorn.email>2025-10-15 18:21:52 -0700
commit45c016866c24a244d286a2db0babab1ff6867ba0 (patch)
tree8e006f9faf9bce3276f8e62c16b32071e20e8cdb /include/ruby
parent9e4a75696303812d23366d57e4381166b1f88bb1 (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')
0 files changed, 0 insertions, 0 deletions