1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

check more.

This commit is contained in:
Koichi Sasada 2019-11-12 09:48:49 +09:00
parent ed90ec3e0d
commit fef4370b40

View file

@ -167,9 +167,9 @@ module Kernel
raise load_error
ensure
if !monitor_owned && RUBYGEMS_ACTIVATION_MONITOR.mon_owned?
if monitor_owned != (ow = RUBYGEMS_ACTIVATION_MONITOR.mon_owned?)
STDERR.puts [$$, Thread.current, $!, $!.backtrace].inspect if $!
raise "CRITICAL: RUBYGEMS_ACTIVATION_MONITOR is holding."
raise "CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before #{monitor_owned} -> after #{ow}"
end
end