Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
Need to pass structure pointer instead of structure for the parameter of
Assert_GC_true_with_message2().

Signed-off-by: Lin Hu <linhu@ca.ibm.com>
  • Loading branch information
LinHu2016 committed Oct 12, 2022
1 parent 6483439 commit 78cb5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/gc_glue_java/ScavengerRootClearer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ MM_ScavengerRootClearer::scavengeContinuationObjects(MM_EnvironmentStandard *env

MM_ForwardedHeader forwardedHeader(object, compressed);
if (!forwardedHeader.isForwardedPointer()) {
Assert_GC_true_with_message2(env, _scavenger->isObjectInEvacuateMemory(object), "Continuation object %p should be a dead object, forwardedHeader=%p\n", object, forwardedHeader);
Assert_GC_true_with_message2(env, _scavenger->isObjectInEvacuateMemory(object), "Continuation object %p should be a dead object, forwardedHeader=%p\n", object, &forwardedHeader);
gcEnv->_scavengerJavaStats._continuationCleared += 1;
VM_VMHelpers::cleanupContinuationObject((J9VMThread *)env->getLanguageVMThread(), object);
} else {
Expand Down

0 comments on commit 78cb5f8

Please sign in to comment.