Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Jul 27, 2024
1 parent 45d8cdf commit 84fbc4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/memory/CopyingCollector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ static gc_oop_t copy_if_necessary(gc_oop_t oop) {
return (gc_oop_t) gcField;
}

assert(GetHeap<HEAP_CLS>()->IsInOldBufferAndOldBufferIsValid(obj));
assert(GetHeap<CopyingHeap>()->IsInOldBufferAndOldBufferIsValid(obj));
assert(!obj->IsMarkedInvalid());

// we have to clone ourselves
AbstractVMObject* newObj = obj->Clone();

assert(GetHeap<HEAP_CLS>()->IsInCurrentBuffer(newObj));
assert(GetHeap<CopyingHeap>()->IsInCurrentBuffer(newObj));

// it looks to me like the Symbols get corrupted somehow, and when we try to clone them, it's too late
// there are also waaaay too many symbols now.
Expand Down

0 comments on commit 84fbc4c

Please sign in to comment.