mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
check more.
This commit is contained in:
parent
ed90ec3e0d
commit
fef4370b40
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue