From fef4370b409c990228cded2c425a6afb3bec2906 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 12 Nov 2019 09:48:49 +0900 Subject: [PATCH] check more. --- lib/rubygems/core_ext/kernel_require.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rubygems/core_ext/kernel_require.rb b/lib/rubygems/core_ext/kernel_require.rb index ccbb2c0472..d2bcc508e5 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