mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Reset GC.stress
to avoid slow coverage processing during process exit
This commit is contained in:
parent
994dadfbf4
commit
1c89b1ec60
Notes:
git
2025-05-01 05:08:47 +00:00
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue