mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
913979bede
Prior to this commit, we were reading and writing ivar index and shape ID in inline caches in two separate instructions when getting and setting ivars. This meant there was a race condition with ractors and these caches where one ractor could change a value in the cache while another was still reading from it. This commit instead reads and writes shape ID and ivar index to inline caches atomically so there is no longer a race condition. Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org> Co-Authored-By: John Hawthorn <john@hawthorn.email> |
||
---|---|---|
.. | ||
c_pointer.rb | ||
c_type.rb | ||
compiler.rb |