assert that fixed object has object mask before marking it

This commit is contained in:
Joel Dice 2007-12-07 15:58:38 -07:00
parent d057ac6a47
commit 00b7fa3b9d

View File

@ -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) {