Skip to content

Commit

Permalink
review: minor tweaks in test log and static vars initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
sspitsyn committed Oct 18, 2024
1 parent 6895abb commit 722fdc3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
extern "C" {
#endif

static jvmtiEnv *jvmti = nullptr;
static jvmtiEnv *jvmti;
static jvmtiCapabilities caps;
static jvmtiEventCallbacks callbacks;
static volatile jint pop_count = 0;
static volatile jint pop_count;
static char* volatile last_notify_method;
static volatile jboolean failed = JNI_FALSE;
static jboolean seenMain = JNI_FALSE;
Expand Down Expand Up @@ -70,7 +70,7 @@ FramePop(jvmtiEnv *jvmti, JNIEnv *jni, jthread thread,
check_jvmti_status(jni, err, "FramePop: Failed in JVMTI GetClassSignature");

name = get_method_name(jvmti, jni, method);
LOG("FramePop(%d) event from method: %s %s\n", pop_count, csig, name);
LOG("FramePop(%d) event from method: %s %s\n", pop_count + 1, csig, name);

if (strcmp(name, "main") != 0) { // ignore FRAME_POP for main that comes in as the test exits
if (strcmp(name, (char*)last_notify_method) != 0) {
Expand Down

0 comments on commit 722fdc3

Please sign in to comment.