mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[ruby/mmtk] Assert that objects are not T_NONE in the write barrier
https://github.com/ruby/mmtk/commit/59d27203e2
This commit is contained in:
parent
aa7eb97d06
commit
e89db8567c
@ -981,6 +981,9 @@ rb_gc_impl_writebarrier(void *objspace_ptr, VALUE a, VALUE b)
|
||||
}
|
||||
#endif
|
||||
|
||||
MMTK_ASSERT(BUILTIN_TYPE(a) != T_NONE);
|
||||
MMTK_ASSERT(BUILTIN_TYPE(b) != T_NONE);
|
||||
|
||||
mmtk_object_reference_write_post(cache->mutator, (MMTk_ObjectReference)a);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user