mirror of
https://github.com/corda/corda.git
synced 2025-01-19 03:06:36 +00:00
fix invalid use of Heap::needsMark in vm::mark
This commit is contained in:
parent
3779f21424
commit
f5c74dcaec
@ -1424,9 +1424,9 @@ allocate(Thread* t, unsigned sizeInBytes)
|
||||
inline void
|
||||
mark(Thread* t, object* targets, unsigned count)
|
||||
{
|
||||
if (t->m->heap->needsMark(reinterpret_cast<void**>(targets))) {
|
||||
ACQUIRE_RAW(t, t->m->heapLock);
|
||||
for (unsigned i = 0; i < count; ++i) {
|
||||
ACQUIRE_RAW(t, t->m->heapLock);
|
||||
for (unsigned i = 0; i < count; ++i) {
|
||||
if (t->m->heap->needsMark(reinterpret_cast<void**>(targets + i))) {
|
||||
t->m->heap->mark(reinterpret_cast<void**>(targets + i));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user