You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) Client VM 25.92-b14 on 1.8.0_92-b14 +jit [mswin32-x86]
tzinfo version 1.2.2
Expected Behavior
When running this script:
require 'tzinfo'
require 'tzinfo/data'
puts JRUBY_VERSION
threads = [1,1,1,1].map do
Thread.new do
begin
tz = TZInfo::Timezone
tz.data_source.load_timezone_info('America/New_York')
rescue Exception => e
puts e.inspect
end
end
end
threads.each { |t| t.join }
puts 'done'
JRuby 1.7.11 outputs:
1.7.11
done
Actual Behavior
JRuby 9.1.2 seems to have issue with const_get in a multi-threaded context:
Environment
jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) Client VM 25.92-b14 on 1.8.0_92-b14 +jit [mswin32-x86]
tzinfo version 1.2.2
Expected Behavior
When running this script:
JRuby 1.7.11 outputs:
Actual Behavior
JRuby 9.1.2 seems to have issue with const_get in a multi-threaded context:
Relevant code in tzinfo:
https://github.com/tzinfo/tzinfo/blob/master/lib/tzinfo/ruby_data_source.rb
Which uses const_get to load data, and which raises above exception when running in a multi-threaded context in JRuby 9.1.2.
The text was updated successfully, but these errors were encountered: