Skip to content

Commit

Permalink
Merge pull request #16507 from dmitripivkine/master
Browse files Browse the repository at this point in the history
Use assertion with message to simplify debugging
  • Loading branch information
amicic committed Jan 4, 2023
2 parents 11f8777 + 4311722 commit c9907a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/gc_base/GCExtensions.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1991, 2022 IBM Corp. and others
* Copyright (c) 1991, 2023 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -305,7 +305,7 @@ MM_GCExtensions::releaseNativesForContinuationObject(MM_EnvironmentBase* env, j9

if (verify_continuation_list == continuationListOption) {
J9VMContinuation *continuation = J9VMJDKINTERNALVMCONTINUATION_VMREF(vmThread, objectPtr);
Assert_MM_true(NULL == continuation);
Assert_GC_true_with_message2(env, (NULL == continuation), "Continuation expected to be NULL, but it is %p, from Continuation object %p\n", continuation, objectPtr);
} else {
getJavaVM()->internalVMFunctions->freeContinuation(vmThread, objectPtr);
}
Expand Down

0 comments on commit c9907a0

Please sign in to comment.