1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Reenable GC at the end of test

The test disables GC but never reenables it. Before this patch, running
all tests would have a peak RSS in the main process of >4GB. After this
patch, peak RSS in the main process is <500MB.
This commit is contained in:
Peter Zhu 2021-08-04 15:33:47 -04:00 committed by Peter Zhu
parent 5f2987d6c2
commit 1fd0a2e4a6
Notes: git 2021-08-05 05:11:40 +09:00

View file

@ -191,6 +191,8 @@ End
assert(false)
rescue my_error
end
ensure
GC.enable
end
def test_each_object