summaryrefslogtreecommitdiff
path: root/lib/rubygems/core_ext
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-11-12 09:48:49 +0900
committerKoichi Sasada <ko1@atdot.net>2019-11-12 10:07:45 +0900
commitfef4370b409c990228cded2c425a6afb3bec2906 (patch)
tree3d9df5622fd9ea1d74558f6ce2cf42546d21ba3b /lib/rubygems/core_ext
parented90ec3e0d8ff7789569b40ba36d3b3ce0e706e6 (diff)
check more.
Diffstat (limited to 'lib/rubygems/core_ext')
-rw-r--r--lib/rubygems/core_ext/kernel_require.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/core_ext/kernel_require.rb b/lib/rubygems/core_ext/kernel_require.rb
index ccbb2c0..d2bcc50 100644
--- a/lib/rubygems/core_ext/kernel_require.rb
+++ b/lib/rubygems/core_ext/kernel_require.rb
@@ -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