diff options
author | Samuel Williams <[email protected]> | 2022-05-25 23:12:54 +1200 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2022-05-26 00:17:30 +1200 |
commit | d875445e8a8b073298e8b3db177d1a5e78c92893 (patch) | |
tree | 0f670ebc108fd139684b4c592ebf87876bfd9274 /test/ruby/test_autoload.rb | |
parent | cd6f87eefc35922d21a1889e038c9f50f229004f (diff) |
Fix GC race condition in autoload.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5941
Diffstat (limited to 'test/ruby/test_autoload.rb')
-rw-r--r-- | test/ruby/test_autoload.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb index f6183f5ee2..bac6337eb9 100644 --- a/test/ruby/test_autoload.rb +++ b/test/ruby/test_autoload.rb @@ -529,6 +529,7 @@ p Foo::Bar t2 = Thread.new {Bar} t1.join + GC.start # force GC. t2.join Object.send(:remove_const, :Foo) |