[前][次][番号順一覧][スレッド一覧]

ruby-changes:67042

From: Peter <ko1@a...>
Date: Thu, 5 Aug 2021 05:11:29 +0900 (JST)
Subject: [ruby-changes:67042] 1fd0a2e4a6 (master): Reenable GC at the end of test

https://git.ruby-lang.org/ruby.git/commit/?id=1fd0a2e4a6

From 1fd0a2e4a62b70287dfce5bb1a66656b647d3899 Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter.zhu@s...>
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 7d4a773..24a190b 100644
--- a/test/ruby/test_objectspace.rb
+++ b/test/ruby/test_objectspace.rb
@@ -191,6 +191,8 @@ End https://github.com/ruby/ruby/blob/trunk/test/ruby/test_objectspace.rb#L191
       assert(false)
     rescue my_error
     end
+  ensure
+    GC.enable
   end
 
   def test_each_object
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]