Skip to content

Commit

Permalink
Merge pull request #18132 from babsingh/fix_jvmtimounttransition
Browse files Browse the repository at this point in the history
Set the ITERATE_FRAMES flag to invoke the frameWalkFunction
  • Loading branch information
gacholio committed Sep 13, 2023
2 parents 869cc38 + 87aa0ab commit 3601bb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/jvmti/jvmtiStackFrame.c
Expand Up @@ -386,6 +386,7 @@ jvmtiGetFrameCount(jvmtiEnv* env,
/* The number of frames skipped is stored in userData1. */
walkState.userData1 = (void *)0;
#if JAVA_SPEC_VERSION >= 20
walkState.flags |= J9_STACKWALK_ITERATE_FRAMES;
walkState.frameWalkFunction = genericFrameIterator;
#endif /* JAVA_SPEC_VERSION >= 20 */

Expand Down Expand Up @@ -815,6 +816,7 @@ jvmtiInternalGetStackTrace(
/* The number of frames skipped is stored in userData1. */
walkState.userData1 = (void *)0;
#if JAVA_SPEC_VERSION >= 20
walkState.flags |= J9_STACKWALK_ITERATE_FRAMES;
walkState.frameWalkFunction = genericFrameIterator;
#endif /* JAVA_SPEC_VERSION >= 20 */
genericWalkStackFramesHelper(currentThread, targetThread, threadObject, &walkState);
Expand Down

0 comments on commit 3601bb4

Please sign in to comment.