mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "Try to revert the test failure with Ruby CI"
This reverts commit 8b27c23b5d
.
This commit is contained in:
parent
8b27c23b5d
commit
f1f27da6c4
1 changed files with 7 additions and 3 deletions
|
@ -61,9 +61,13 @@ module Kernel
|
|||
|
||||
spec = dep.to_spec
|
||||
|
||||
Gem::LOADED_SPECS_MUTEX.synchronize do
|
||||
spec.activate
|
||||
end if spec
|
||||
if spec
|
||||
if Gem::LOADED_SPECS_MUTEX.owned?
|
||||
spec.activate
|
||||
else
|
||||
Gem::LOADED_SPECS_MUTEX.synchronize { spec.activate }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
private :gem
|
||||
|
|
Loading…
Reference in a new issue