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 9
9
require 'concurrent/atomic/event'
10
10
require 'concurrent/atomic/synchronization'
11
11
require '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
50
50
var . value = 0
51
51
expect ( var . instance_variable_get ( :@storage ) . keys . size ) . to be == 1
52
52
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
69
53
end
70
54
end
71
55
You can’t perform that action at this time.
0 commit comments