Try to fix flaky test_warmup_frees_pages

This test sometimes fails with:

```
  1) Failure:
TestProcess#test_warmup_frees_pages [test/ruby/test_process.rb:2750]:
<202> expected but was
<203>.
```
This commit is contained in:
Peter Zhu 2023-09-06 13:31:50 -04:00
parent a334077b7b
commit 08929b344d

View File

@ -2742,6 +2742,9 @@ EOS
ary.clear
ary = nil
# Disable GC so we can make sure GC only runs in Process.warmup
GC.disable
total_pages_before = GC.stat(:heap_eden_pages) + GC.stat(:heap_allocatable_pages)
Process.warmup