mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[ruby/mmtk] Clear slot when object is freed
https://github.com/ruby/mmtk/commit/87290e45b2
This commit is contained in:
parent
328655633b
commit
2daed3c022
@ -330,6 +330,11 @@ rb_mmtk_call_obj_free(MMTk_ObjectReference object)
|
||||
}
|
||||
|
||||
rb_gc_obj_free(objspace, obj);
|
||||
|
||||
// TODO: uncomment this when done debugging
|
||||
// #ifdef MMTK_DEBUG
|
||||
memset((void *)obj, 0, rb_gc_impl_obj_slot_size(obj));
|
||||
// #endif
|
||||
}
|
||||
|
||||
static size_t
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user