equal
deleted
inserted
replaced
85 return PASSED; |
85 return PASSED; |
86 } |
86 } |
87 |
87 |
88 if (vrb == 1) |
88 if (vrb == 1) |
89 printf(">>>>>>>> Invoke SuspendThread()\n"); |
89 printf(">>>>>>>> Invoke SuspendThread()\n"); |
90 if ((err = (jvmti->SuspendThread(susThr))) != JVMTI_ERROR_NONE) { |
90 err = jvmti->SuspendThread(susThr); |
|
91 if (err != JVMTI_ERROR_NONE) { |
91 printf("%s: Failed to call SuspendThread(): error=%d: %s\n", |
92 printf("%s: Failed to call SuspendThread(): error=%d: %s\n", |
92 __FILE__, err, TranslateError(err)); |
93 __FILE__, err, TranslateError(err)); |
93 return JNI_ERR; |
94 return JNI_ERR; |
94 } |
95 } |
95 if (vrb == 1) |
96 if (vrb == 1) |
106 return PASSED; |
107 return PASSED; |
107 } |
108 } |
108 |
109 |
109 if (vrb == 1) |
110 if (vrb == 1) |
110 printf(">>>>>>>> Invoke ResumeThread()\n"); |
111 printf(">>>>>>>> Invoke ResumeThread()\n"); |
111 if ((err = (jvmti->ResumeThread(susThr))) != JVMTI_ERROR_NONE) { |
112 err = jvmti->ResumeThread(susThr); |
|
113 if (err != JVMTI_ERROR_NONE) { |
112 printf("%s: Failed to call ResumeThread(): error=%d: %s\n", |
114 printf("%s: Failed to call ResumeThread(): error=%d: %s\n", |
113 __FILE__, err, TranslateError(err)); |
115 __FILE__, err, TranslateError(err)); |
114 return JNI_ERR; |
116 return JNI_ERR; |
115 } |
117 } |
116 if (vrb == 1) |
118 if (vrb == 1) |
145 |
147 |
146 if (vrb == 1) |
148 if (vrb == 1) |
147 printf(">>>>>>>> Invoke PopFrame()\n"); |
149 printf(">>>>>>>> Invoke PopFrame()\n"); |
148 set_watch_ev(1); /* watch JVMTI events */ |
150 set_watch_ev(1); /* watch JVMTI events */ |
149 |
151 |
150 if ((err = (jvmti->PopFrame(frameThr))) != JVMTI_ERROR_NONE) { |
152 err = jvmti->PopFrame(frameThr); |
|
153 if (err != JVMTI_ERROR_NONE) { |
151 printf("TEST FAILED: the function PopFrame() returned the error %d: %s\n", |
154 printf("TEST FAILED: the function PopFrame() returned the error %d: %s\n", |
152 err, TranslateError(err)); |
155 err, TranslateError(err)); |
153 printf("\tFor more info about this error see the JVMTI spec.\n"); |
156 printf("\tFor more info about this error see the JVMTI spec.\n"); |
154 tot_result = STATUS_FAILED; |
157 tot_result = STATUS_FAILED; |
155 } |
158 } |