From 0dcb0fdfcd48b63ae000c8216a1e7b1c508e0ef2 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Fri, 14 Jun 2024 03:05:38 -0400 Subject: [PATCH] Enable LeakChecker for RJIT previously disabled for MJIT (#10998) RJIT doesn't spawn subprocesses so there should now be no need to special case it. --- tool/lib/test/unit.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 2b0856b822..5e5b34f5b6 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -1761,9 +1761,7 @@ module Test puts if @verbose $stdout.flush - unless defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled? # compiler process is wrongly considered as leak - leakchecker.check("#{inst.class}\##{inst.__name__}") - end + leakchecker.check("#{inst.class}\##{inst.__name__}") _end_method(inst)