From 00b7fa3b9dc8b1c7db669c4ff07dc88764b0e356 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 7 Dec 2007 15:58:38 -0700 Subject: [PATCH] assert that fixed object has object mask before marking it --- src/heap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/heap.cpp b/src/heap.cpp index 45f0748c27..6dfa1a689d 100644 --- a/src/heap.cpp +++ b/src/heap.cpp @@ -1401,6 +1401,8 @@ class MyHeap: public Heap { virtual void mark(void* p, unsigned offset, unsigned count) { if (c.client->isFixed(p)) { Fixie* f = fixie(p); + assert(&c, f->hasMask); + unsigned size = c.client->sizeInWords(p); for (unsigned i = 0; i < count; ++i) {