[ruby/mmtk] Clear slot when object is freed

https://github.com/ruby/mmtk/commit/87290e45b2
This commit is contained in:
Peter Zhu 2026-01-09 21:22:08 -05:00 committed by git
parent 328655633b
commit 2daed3c022

View File

@ -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