From fa49651e05a06512e18ccb2f54a7198c9ff579de Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Mon, 6 Feb 2023 12:30:50 +0100 Subject: Only emit circular dependency warning for owned thread shields [Bug #19415] If multiple threads attemps to load the same file concurrently it's not a circular dependency issue. So we check that the existing ThreadShield is owner by the current fiber before warning about circular dependencies. --- spec/ruby/fixtures/code/concurrent_require_fixture.rb | 1 + 1 file changed, 1 insertion(+) create mode 100644 spec/ruby/fixtures/code/concurrent_require_fixture.rb (limited to 'spec/ruby/fixtures/code') diff --git a/spec/ruby/fixtures/code/concurrent_require_fixture.rb b/spec/ruby/fixtures/code/concurrent_require_fixture.rb new file mode 100644 index 0000000000..fbb036214b --- /dev/null +++ b/spec/ruby/fixtures/code/concurrent_require_fixture.rb @@ -0,0 +1 @@ +Thread.new { ScratchPad.recorded.require(__FILE__) }.join(0.1) -- cgit v1.2.3