Reset GC.stress to avoid slow coverage processing during process exit

This commit is contained in:
Yusuke Endoh 2025-05-01 13:36:24 +09:00
parent 994dadfbf4
commit 1c89b1ec60
Notes: git 2025-05-01 05:08:47 +00:00

View File

@ -114,6 +114,10 @@ pid = $$
pwd = Dir.pwd
at_exit do
# Some tests leave GC.stress enabled, causing slow coverage processing.
# Reset it here to avoid performance issues.
GC.stress = false
exit_exc = $!
Dir.chdir(pwd) do