Skip to content

Commit 7b93fc3

Browse files
committed
Disabled RRWL tests on JRuby.
1 parent ad0347f commit 7b93fc3

File tree

2 files changed

+394
-382
lines changed

2 files changed

+394
-382
lines changed

lib/concurrent/atomic/thread_local_var.rb

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -87,25 +87,6 @@ def bind(value, &block)
8787
def allocate_storage
8888
raise NotImplementedError
8989
end
90-
91-
private
92-
93-
# This exists only for use in testing
94-
# @!visibility private
95-
def value_for(thread)
96-
if array = thread.thread_variable_get(:__threadlocal_array__)
97-
value = array[@index]
98-
if value.nil?
99-
@default
100-
elsif value.equal?(NIL_SENTINEL)
101-
nil
102-
else
103-
value
104-
end
105-
else
106-
@default
107-
end
108-
end
10990
end
11091

11192
# @!visibility private
@@ -233,6 +214,25 @@ def self.thread_finalizer(array)
233214
end
234215
end
235216
end
217+
218+
private
219+
220+
# This exists only for use in testing
221+
# @!visibility private
222+
def value_for(thread)
223+
if array = thread.thread_variable_get(:__threadlocal_array__)
224+
value = array[@index]
225+
if value.nil?
226+
@default
227+
elsif value.equal?(NIL_SENTINEL)
228+
nil
229+
else
230+
value
231+
end
232+
else
233+
@default
234+
end
235+
end
236236
end
237237

238238
if Concurrent.on_jruby?

0 commit comments

Comments
 (0)