Skip to content

Commit

Permalink
Merge pull request #18492 from gacholio/null42
Browse files Browse the repository at this point in the history
(0.42) Add NULL check for continuation struct
  • Loading branch information
tajila committed Nov 20, 2023
2 parents df46709 + 0674d42 commit 16ff7d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions runtime/codert_vm/decomp.cpp
Expand Up @@ -1558,9 +1558,12 @@ deleteDecompCallBack(J9VMThread *currentThread, J9MM_IterateObjectDescriptor *ob

if ((NULL != vthread) && J9_ARE_NO_BITS_SET(continuationState, J9_GC_CONTINUATION_STATE_LAST_UNMOUNT)) {
J9VMContinuation *continuation = J9VMJDKINTERNALVMCONTINUATION_VMREF(currentThread, continuationObj);
J9DeleteDecompData *data = (J9DeleteDecompData*)userData;

freeDecompilations(currentThread, NULL, &(continuation->decompilationStack), data->reason, data->method);
if (NULL != continuation) {
J9DeleteDecompData *data = (J9DeleteDecompData*)userData;

freeDecompilations(currentThread, NULL, &(continuation->decompilationStack), data->reason, data->method);
}
}
return JVMTI_ITERATION_CONTINUE;
}
Expand Down

0 comments on commit 16ff7d7

Please sign in to comment.