Skip to content

Commit e8ee0d2

Browse files
committed
Fix another case of Hash monitor not being initialized
1 parent 1788840 commit e8ee0d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/concurrent/thread_safe/util/array_hash_rbx.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ def self.allocate
2020
obj.send(:_mon_initialize)
2121
obj
2222
end
23+
24+
def self.[](*args)
25+
obj = super
26+
obj.send(:_mon_initialize)
27+
obj
28+
end
2329
end
2430

2531
klass.superclass.instance_methods(false).each do |method|

0 commit comments

Comments
 (0)