We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 231660d commit 11729f1Copy full SHA for 11729f1
mmtk/src/object_model.rs
@@ -318,7 +318,7 @@ pub unsafe fn get_so_object_size(object: ObjectReference) -> usize {
318
#[inline(always)]
319
pub unsafe fn get_lo_object_size(object: ObjectReference) -> usize {
320
let obj_address = object.to_raw_address();
321
- let julia_big_object = obj_address.to_ptr::<_bigval_t>();
+ let julia_big_object = (obj_address - std::mem::size_of::<_bigval_t>()).to_ptr::<_bigval_t>();
322
return (*julia_big_object).sz;
323
}
324
0 commit comments