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
|
spec = dep.to_spec
|
||||||
|
|
||||||
Gem::LOADED_SPECS_MUTEX.synchronize do
|
if spec
|
||||||
|
if Gem::LOADED_SPECS_MUTEX.owned?
|
||||||
spec.activate
|
spec.activate
|
||||||
end if spec
|
else
|
||||||
|
Gem::LOADED_SPECS_MUTEX.synchronize { spec.activate }
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private :gem
|
private :gem
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue