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 06eeda4 commit 4a03d17Copy full SHA for 4a03d17
immix/src/collector.rs
@@ -311,11 +311,11 @@ impl Collector {
311
/// it self does not mark the object, but mark the object's fields by calling
312
/// mark_ptr
313
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() {
+ let vptr = *(ptr as *mut *mut u8);
+ if vptr.is_null() {
317
return;
318
}
+ let vtable = *(ptr as *mut VtableFunc);
319
vtable(
320
ptr,
321
self,
0 commit comments