ruby-changes:74150
From: Nobuyoshi <ko1@a...>
Date: Fri, 21 Oct 2022 04:43:57 +0900 (JST)
Subject: [ruby-changes:74150] 9a0a165a5d (master): Check writebarrier arguments
https://git.ruby-lang.org/ruby.git/commit/?id=9a0a165a5d From 9a0a165a5d6d0bc4ed18cb92d05593796f703359 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 21 Oct 2022 00:43:08 +0900 Subject: Check writebarrier arguments --- gc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gc.c b/gc.c index 44b3f6a83c..e47a4adb1f 100644 --- a/gc.c +++ b/gc.c @@ -8920,8 +8920,8 @@ rb_gc_writebarrier(VALUE a, VALUE b) https://github.com/ruby/ruby/blob/trunk/gc.c#L8920 { rb_objspace_t *objspace = &rb_objspace; - if (RGENGC_CHECK_MODE && SPECIAL_CONST_P(a)) rb_bug("rb_gc_writebarrier: a is special const"); - if (RGENGC_CHECK_MODE && SPECIAL_CONST_P(b)) rb_bug("rb_gc_writebarrier: b is special const"); + if (SPECIAL_CONST_P(a)) rb_bug("rb_gc_writebarrier: a is special const: %"PRIxVALUE, a); + if (SPECIAL_CONST_P(b)) rb_bug("rb_gc_writebarrier: b is special const: %"PRIxVALUE, b); retry: if (!is_incremental_marking(objspace)) { -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/