41 |
41 |
42 static jvmtiEnv *jvmti = NULL; |
42 static jvmtiEnv *jvmti = NULL; |
43 static jint result = PASSED; |
43 static jint result = PASSED; |
44 static jvmtiThreadInfo inf; |
44 static jvmtiThreadInfo inf; |
45 static info threads[] = { |
45 static info threads[] = { |
46 {"main", JVMTI_THREAD_NORM_PRIORITY, 0}, |
46 { "main", JVMTI_THREAD_NORM_PRIORITY, 0 }, |
47 {"thread1", JVMTI_THREAD_MIN_PRIORITY + 2, 1}, |
47 { "thread1", JVMTI_THREAD_MIN_PRIORITY + 2, 1 }, |
48 {"Thread-", JVMTI_THREAD_MIN_PRIORITY, 1} |
48 { "Thread-", JVMTI_THREAD_MIN_PRIORITY, 1 } |
49 }; |
49 }; |
50 |
50 |
51 #ifdef STATIC_BUILD |
51 #ifdef STATIC_BUILD |
52 JNIEXPORT jint JNICALL Agent_OnLoad_thrinfo001(JavaVM *jvm, char *options, void *reserved) { |
52 JNIEXPORT jint JNICALL Agent_OnLoad_thrinfo001(JavaVM *jvm, char *options, void *reserved) { |
53 return Agent_Initialize(jvm, options, reserved); |
53 return Agent_Initialize(jvm, options, reserved); |