From 1fd0a2e4a62b70287dfce5bb1a66656b647d3899 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 4 Aug 2021 15:33:47 -0400 Subject: 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. --- test/ruby/test_objectspace.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/ruby/test_objectspace.rb b/test/ruby/test_objectspace.rb index 7d4a773d4b..24a190b2df 100644 --- a/test/ruby/test_objectspace.rb +++ b/test/ruby/test_objectspace.rb @@ -191,6 +191,8 @@ End assert(false) rescue my_error end + ensure + GC.enable end def test_each_object -- cgit v1.2.3