Skip to content

Commit 4a03d17

Browse files
committed
fix: cargo pointer issue
1 parent 06eeda4 commit 4a03d17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

immix/src/collector.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,11 @@ impl Collector {
311311
/// it self does not mark the object, but mark the object's fields by calling
312312
/// mark_ptr
313313
unsafe fn mark_complex(&self, ptr: *mut u8) {
314-
let vtable = *(ptr as *mut VtableFunc);
315-
let vtable_ptr = vtable as *mut u8;
316-
if vtable_ptr.is_null() {
314+
let vptr = *(ptr as *mut *mut u8);
315+
if vptr.is_null() {
317316
return;
318317
}
318+
let vtable = *(ptr as *mut VtableFunc);
319319
vtable(
320320
ptr,
321321
self,

0 commit comments

Comments
 (0)