Skip to content

Commit

Permalink
Reenable GC at the end of test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peterzhu2118 committed Aug 4, 2021
1 parent 5f2987d commit 1fd0a2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/ruby/test_objectspace.rb
Expand Up @@ -191,6 +191,8 @@ def test_finalizer_thread_raise
assert(false)
rescue my_error
end
ensure
GC.enable
end

def test_each_object
Expand Down

0 comments on commit 1fd0a2e

Please sign in to comment.