mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Check writebarrier arguments
This commit is contained in:
parent
be9bc48015
commit
575ae50d16
1 changed files with 2 additions and 2 deletions
4
gc.c
4
gc.c
|
@ -8920,8 +8920,8 @@ rb_gc_writebarrier(VALUE a, VALUE b)
|
|||
{
|
||||
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)) {
|
||||
|
|
Loading…
Reference in a new issue