check monitor is owning for debug
This commit is contained in:
parent
99be207c2a
commit
a815053a3e
@ -157,6 +157,11 @@ module Kernel
|
||||
return gem_original_require(path) if require_again
|
||||
|
||||
raise load_error
|
||||
ensure
|
||||
if RUBYGEMS_ACTIVATION_MONITOR.mon_owned?
|
||||
pp $!
|
||||
raise "CRITICAL: RUBYGEMS_ACTIVATION_MONITOR is holding."
|
||||
end
|
||||
end
|
||||
|
||||
private :require
|
||||
|
Loading…
x
Reference in New Issue
Block a user