mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
assert that fixed object has object mask before marking it
This commit is contained in:
parent
d057ac6a47
commit
00b7fa3b9d
@ -1401,6 +1401,8 @@ class MyHeap: public Heap {
|
|||||||
virtual void mark(void* p, unsigned offset, unsigned count) {
|
virtual void mark(void* p, unsigned offset, unsigned count) {
|
||||||
if (c.client->isFixed(p)) {
|
if (c.client->isFixed(p)) {
|
||||||
Fixie* f = fixie(p);
|
Fixie* f = fixie(p);
|
||||||
|
assert(&c, f->hasMask);
|
||||||
|
|
||||||
unsigned size = c.client->sizeInWords(p);
|
unsigned size = c.client->sizeInWords(p);
|
||||||
|
|
||||||
for (unsigned i = 0; i < count; ++i) {
|
for (unsigned i = 0; i < count; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user