mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/mmtk] Restore MMTK_DEBUG around zeroing in obj_free
https://github.com/ruby/mmtk/commit/ae69d69768
This commit is contained in:
parent
16adb9303f
commit
fa910e2bba
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user