Skip to content

Commit

Permalink
check monitor is owning for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Nov 11, 2019
1 parent 99be207 commit a815053
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/rubygems/core_ext/kernel_require.rb
Expand Up @@ -157,6 +157,11 @@ def require(path)
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
Expand Down

0 comments on commit a815053

Please sign in to comment.