From d875445e8a8b073298e8b3db177d1a5e78c92893 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 25 May 2022 23:12:54 +1200 Subject: Fix GC race condition in autoload. --- test/ruby/test_autoload.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_autoload.rb') 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) -- cgit v1.2.3