ruby-changes:65069
From: Peter <ko1@a...>
Date: Thu, 28 Jan 2021 09:18:10 +0900 (JST)
Subject: [ruby-changes:65069] d2ffd269a7 (master): [Fixes #17538] Fix assertion failure when rincgc is turned off
https://git.ruby-lang.org/ruby.git/commit/?id=d2ffd269a7 From d2ffd269a77021e6507a50995cd4af6eb5e33ea3 Mon Sep 17 00:00:00 2001 From: Peter Zhu <peter@p...> Date: Wed, 13 Jan 2021 13:45:03 -0500 Subject: [Fixes #17538] Fix assertion failure when rincgc is turned off Co-Authored-By: Matt Valentine-House <31869+eightbitraptor@u...> --- gc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gc.c b/gc.c index e21c076..c407293 100644 --- a/gc.c +++ b/gc.c @@ -5174,8 +5174,9 @@ gc_sweep_step(rb_objspace_t *objspace, rb_heap_t *heap) https://github.com/ruby/ruby/blob/trunk/gc.c#L5174 } } #else - heap_add_freepage(heap, sweep_page); - break; + if (heap_add_freepage(heap, sweep_page)) { + break; + } #endif } else { -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/