-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
Environment Information
jruby 9.3.0.0-SNAPSHOT (2.6.5) 2021-06-06 02b783d Java HotSpot(TM) 64-Bit Server VM 15.0.2+7-27 on 15.0.2+7-27 +jit [linux-x86_64]
works on 9.2 / cruby
Expected Behavior
repro
# Thread.report_on_exception = true
autoload(:FileUtils, 'fileutils.rb')
threads = []
50.times do
threads << Thread.new do
begin
FileUtils
rescue
false
else
true
end
end
end
threads.each(&:join)
puts "Success: #{threads.select{|x| x.value}.count}"
puts "Failed: #{threads.select{|x| !x.value}.count}"
it should pass and load fileutils outside of the main thread
Actual Behavior
it fails on an uninitialized constant each time
refs: #5764
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels