[ruby/mmtk] Restore MMTK_DEBUG around zeroing in obj_free

https://github.com/ruby/mmtk/commit/ae69d69768
This commit is contained in:
Peter Zhu 2026-01-18 21:09:21 -05:00 committed by git
parent 16adb9303f
commit fa910e2bba

View File

@ -333,10 +333,9 @@ rb_mmtk_call_obj_free(MMTk_ObjectReference object)
rb_gc_obj_free(objspace, obj);
// TODO: uncomment this when done debugging
// #ifdef MMTK_DEBUG
#ifdef MMTK_DEBUG
memset((void *)obj, 0, rb_gc_impl_obj_slot_size(obj));
// #endif
#endif
}
static size_t