60 int methodCompiled; |
60 int methodCompiled; |
61 } ThreadDesc; |
61 } ThreadDesc; |
62 |
62 |
63 /* descriptions of tested threads */ |
63 /* descriptions of tested threads */ |
64 static ThreadDesc threadsDesc[THREADS_COUNT] = { |
64 static ThreadDesc threadsDesc[THREADS_COUNT] = { |
65 {"threadRunning", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE}, |
65 { "threadRunning", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE }, |
66 {"threadEntering", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE}, |
66 { "threadEntering", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE }, |
67 {"threadWaiting", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE}, |
67 { "threadWaiting", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE }, |
68 {"threadSleeping", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE}, |
68 { "threadSleeping", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE }, |
69 {"threadRunningInterrupted", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE}, |
69 { "threadRunningInterrupted", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE }, |
70 {"threadRunningNative", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE} |
70 { "threadRunningNative", "testedMethod", "(ZI)V", NULL, NULL, NULL, NSK_JVMTI_INVALID_JLOCATION, NSK_FALSE } |
71 }; |
71 }; |
72 |
72 |
73 /* indexes of known threads */ |
73 /* indexes of known threads */ |
74 static const int interruptedThreadIndex = THREADS_COUNT - 2; |
74 static const int interruptedThreadIndex = THREADS_COUNT - 2; |
75 static const int nativeThreadIndex = THREADS_COUNT - 1; |
75 static const int nativeThreadIndex = THREADS_COUNT - 1; |