diff --git a/mmtk/src/julia_scanning.rs b/mmtk/src/julia_scanning.rs index 9fd3aed..1859a6a 100644 --- a/mmtk/src/julia_scanning.rs +++ b/mmtk/src/julia_scanning.rs @@ -142,7 +142,7 @@ pub unsafe fn scan_julia_object>(obj: Address, clos process_offset_slot(closure, slot, offset); } - let nusings = (*m).usings.len; + let nusings = (*m).usings.len / 3; if nusings > 0 { let mut objary_begin = Address::from_mut_ptr((*m).usings.items); let objary_end = objary_begin.shift::
(nusings as isize); @@ -152,7 +152,7 @@ pub unsafe fn scan_julia_object>(obj: Address, clos println!(" - scan usings: {:?}\n", objary_begin); } process_slot(closure, objary_begin); - objary_begin = objary_begin.shift::
(1); + objary_begin = objary_begin.shift::
(3); } } } else if vtag_usize == ((jl_small_typeof_tags_jl_task_tag as usize) << 4) {