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:
parent
5f2987d6c2
commit
1fd0a2e4a6
Notes:
git
2021-08-05 05:11:40 +09:00
1 changed files with 2 additions and 0 deletions
|
@ -191,6 +191,8 @@ End
|
|||
assert(false)
|
||||
rescue my_error
|
||||
end
|
||||
ensure
|
||||
GC.enable
|
||||
end
|
||||
|
||||
def test_each_object
|
||||
|
|
Loading…
Add table
Reference in a new issue