From 513520a1735d0d980bb74f9eac20f29225c91427 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Thu, 13 Jun 2024 16:31:23 +0900 Subject: [PATCH] do not call `check_rvalue_consistency` here in `free` is not valid object and should not call `check_rvalue_consistency`. --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc.c b/gc.c index 765647e8ac..d1e0fcd042 100644 --- a/gc.c +++ b/gc.c @@ -9545,7 +9545,7 @@ gc_move(rb_objspace_t *objspace, VALUE scan, VALUE free, size_t src_slot_size, s gc_report(4, objspace, "Moving object: %p -> %p\n", (void*)scan, (void *)free); GC_ASSERT(BUILTIN_TYPE(scan) != T_NONE); - GC_ASSERT(!RVALUE_MARKED(free)); + GC_ASSERT(!MARKED_IN_BITMAP(GET_HEAP_MARK_BITS(free), free)); GC_ASSERT(!RVALUE_MARKING((VALUE)src));