diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-08-16 16:02:16 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-08-19 10:58:36 -0400 |
| commit | cb2848772210f8e00956a24db650f8b06786fd3c (patch) | |
| tree | 0335728d1ac426aecdd046ac038d2b6fb9934cee /test/ruby/test_integer.rb | |
| parent | 786d0006524b0ca282a05593ca3dff3633890af7 (diff) | |
Make assertions allow incremental GC when disabled
When assertions are enabled, the following code triggers an assertion
error:
GC.disable
GC.start(immediate_mark: false, immediate_sweep: false)
10_000_000.times { Object.new }
This is because the GC.start ignores that the GC is disabled and will
start incremental marking and lazy sweeping. But the assertions in
gc_marks_continue and gc_sweep_continue assert that GC is not disabled.
This commit changes it for the assertion to pass if the GC was triggered
from a method.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11391
Diffstat (limited to 'test/ruby/test_integer.rb')
0 files changed, 0 insertions, 0 deletions
