We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c587821 commit e7ff945Copy full SHA for e7ff945
lib/concurrent-ruby/concurrent/array.rb
@@ -21,9 +21,9 @@ module Concurrent
21
# @!macro internal_implementation_note
22
ArrayImplementation = case
23
when Concurrent.on_cruby?
24
- # Array is thread-safe in practice because CRuby runs
25
- # threads one at a time and does not do context
26
- # switching during the execution of C functions.
+ # Array is not fully thread-safe on CRuby, see
+ # https://github.com/ruby-concurrency/concurrent-ruby/issues/929
+ # So we will need to add synchronization here
27
::Array
28
29
when Concurrent.on_jruby?
0 commit comments