Skip to content

Commit 94eedff

Browse files
authored
Merge pull request #18434 from dmitripivkine/master
Fixing compilation problem
2 parents 084fe2a + 6258c08 commit 94eedff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runtime/gc_modron_startup/mgcalloc.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ J9AllocateObjectNoGC(J9VMThread *vmThread, J9Class *clazz, uintptr_t allocateFla
119119
uintptr_t actuallyAllocatedBytes = mixedOAM.getAllocateDescription()->getContiguousBytes();
120120
Assert_GC_true_with_message4(env, allocatedBytes == actuallyAllocatedBytes,
121121
"Mixed object allocation sanity failure: object %p, requested %zu bytes, but read %zu, MM_MixedObjectAllocationModel %p\n",
122-
objectPtr, allocatedBytes, actuallyAllocatedBytes, mixedOAM);
122+
objectPtr, allocatedBytes, actuallyAllocatedBytes, &mixedOAM);
123123

124124
if (LN_HAS_LOCKWORD(vmThread, objectPtr)) {
125125
j9objectmonitor_t initialLockword = VM_ObjectMonitor::getInitialLockword(vmThread->javaVM, clazz);
@@ -366,7 +366,7 @@ J9AllocateIndexableObjectNoGC(J9VMThread *vmThread, J9Class *clazz, uint32_t num
366366
uintptr_t actuallyAllocatedBytes = indexableOAM.getAllocateDescription()->getContiguousBytes();
367367
Assert_GC_true_with_message4(env, allocatedBytes == actuallyAllocatedBytes,
368368
"Indexable object allocation sanity failure: object %p, requested %zu bytes, but read %zu, MM_IndexableObjectAllocationModel %p\n",
369-
objectPtr, allocatedBytes, actuallyAllocatedBytes, indexableOAM);
369+
objectPtr, allocatedBytes, actuallyAllocatedBytes, &indexableOAM);
370370
}
371371
env->_isInNoGCAllocationCall = false;
372372
}
@@ -432,7 +432,7 @@ J9AllocateObject(J9VMThread *vmThread, J9Class *clazz, uintptr_t allocateFlags)
432432
uintptr_t actuallyAllocatedBytes = mixedOAM.getAllocateDescription()->getContiguousBytes();
433433
Assert_GC_true_with_message4(env, allocatedBytes == actuallyAllocatedBytes,
434434
"Mixed object allocation sanity failure: object %p, requested %zu bytes, but read %zu, MM_MixedObjectAllocationModel %p\n",
435-
objectPtr, allocatedBytes, actuallyAllocatedBytes, mixedOAM);
435+
objectPtr, allocatedBytes, actuallyAllocatedBytes, &mixedOAM);
436436

437437
if (LN_HAS_LOCKWORD(vmThread, objectPtr)) {
438438
j9objectmonitor_t initialLockword = VM_ObjectMonitor::getInitialLockword(vmThread->javaVM, clazz);
@@ -600,7 +600,7 @@ J9AllocateIndexableObject(J9VMThread *vmThread, J9Class *clazz, uint32_t numberO
600600
uintptr_t actuallyAllocatedBytes = indexableOAM.getAllocateDescription()->getContiguousBytes();
601601
Assert_GC_true_with_message4(env, allocatedBytes == actuallyAllocatedBytes,
602602
"Indexable object allocation sanity failure: object %p, requested %zu bytes, but read %zu, MM_IndexableObjectAllocationModel %p\n",
603-
objectPtr, allocatedBytes, actuallyAllocatedBytes, indexableOAM);
603+
objectPtr, allocatedBytes, actuallyAllocatedBytes, &indexableOAM);
604604
}
605605
}
606606

0 commit comments

Comments
 (0)