mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Check writebarrier arguments only when RGENGC_CHECK_MODE [ci skip]
The commit575ae50d16
was for debugging the failure triggered byf55212bce9
, and it was fixed at the commit39f7eddec4
.
This commit is contained in:
parent
39f7eddec4
commit
e72c5044ce
1 changed files with 4 additions and 2 deletions
6
gc.c
6
gc.c
|
@ -8920,8 +8920,10 @@ rb_gc_writebarrier(VALUE a, VALUE b)
|
||||||
{
|
{
|
||||||
rb_objspace_t *objspace = &rb_objspace;
|
rb_objspace_t *objspace = &rb_objspace;
|
||||||
|
|
||||||
if (SPECIAL_CONST_P(a)) rb_bug("rb_gc_writebarrier: a is special const: %"PRIxVALUE, a);
|
if (RGENGC_CHECK_MODE) {
|
||||||
if (SPECIAL_CONST_P(b)) rb_bug("rb_gc_writebarrier: b is special const: %"PRIxVALUE, b);
|
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:
|
retry:
|
||||||
if (!is_incremental_marking(objspace)) {
|
if (!is_incremental_marking(objspace)) {
|
||||||
|
|
Loading…
Reference in a new issue