Skip to content
Permalink
Browse files
Improved GetStackTraceNotSuspendedStressTest.java, added get_xxx_name…
… check
  • Loading branch information
lmesnik committed Mar 4, 2021
1 parent 2ab6b0b commit cfec4918cb73db30c6fb2b9bd431a13dd3c37769
Showing 1 changed file with 3 additions and 4 deletions.
@@ -48,16 +48,15 @@ static void test_stack_trace(jvmtiEnv *jvmti, JNIEnv *jni, jthread vthread) {

method = frames[count -1].method;

//const char* class_name = get_method_class_name(jvmti, jni, method);
/*
const char* class_name = get_method_class_name(jvmti, jni, method);
const char* method_name = get_method_name(jvmti, jni, method);

if (strcmp(CONTINUATION_METHOD_NAME, method_name) != 0) {
if (strcmp(CONTINUATION_CLASS_NAME, class_name) !=0 || strcmp(CONTINUATION_METHOD_NAME, method_name) != 0) {
printf("Stacktrace in virtual thread is incorrect (doesn't start from enter(...):");
print_stack_trace_frames(jvmti, jni, count, frames);
fatal(jni, "incorrect stacktrace.");
}
*/

}


0 comments on commit cfec491

Please sign in to comment.