зеркало из https://github.com/github/ruby.git
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:
Родитель
5f2987d6c2
Коммит
1fd0a2e4a6
|
@ -191,6 +191,8 @@ End
|
|||
assert(false)
|
||||
rescue my_error
|
||||
end
|
||||
ensure
|
||||
GC.enable
|
||||
end
|
||||
|
||||
def test_each_object
|
||||
|
|
Загрузка…
Ссылка в новой задаче