Skip to content

Commit e884909

Browse files
committed
Remove newly-added debug-assert that isn't true in certain edge cases
Sometimes we need to deallocate uninitialized objects when initializing their fields fails, and this assertion trips.
1 parent fd44e1a commit e884909

File tree

1 file changed

+0
-1
lines changed
  • crates/wasmtime/src/runtime/vm/gc/enabled

1 file changed

+0
-1
lines changed

crates/wasmtime/src/runtime/vm/gc/enabled/drc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ impl DrcHeap {
142142

143143
fn dealloc(&mut self, gc_ref: VMGcRef) {
144144
let drc_ref = drc_ref(&gc_ref);
145-
debug_assert_eq!(unsafe { *self.index(drc_ref).ref_count.get() }, 0);
146145
let size = self.index(drc_ref).object_size();
147146
let layout = FreeList::layout(size);
148147
self.free_list

0 commit comments

Comments
 (0)