File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change 99require 'concurrent/atomic/event'
1010require 'concurrent/atomic/synchronization'
1111require 'concurrent/atomic/semaphore'
12+ require 'concurrent/atomic/thread_local_var'
Original file line number Diff line number Diff line change @@ -50,22 +50,6 @@ module Concurrent
5050 var . value = 0
5151 expect ( var . instance_variable_get ( :@storage ) . keys . size ) . to be == 1
5252 end
53-
54- it 'does not leave values behind when bind is not used' do
55- if rbx?
56- pending ( 'fails on Rbx, possibly due to test dependency on GC' )
57- end
58- tries = Array . new ( 10 ) do
59- var = ThreadLocalVar . new ( 0 )
60- 10 . times . map do |i |
61- Thread . new { var . value = i ; var . value }
62- end . each ( &:join )
63- var . value = 0
64- GC . start
65- var . instance_variable_get ( :@storage ) . keys . size == 1
66- end
67- expect ( tries . any? ) . to be_truthy
68- end
6953 end
7054 end
7155
You can’t perform that action at this time.
0 commit comments