test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadInfo/thrinfo001/thrinfo001.cpp
changeset 52776 c05ba185a1d3
parent 51672 b613bf6a10b1
equal deleted inserted replaced
52775:d488477865c0 52776:c05ba185a1d3
    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);