comparison test/hotspot/jtreg/vmTestbase/nsk/jvmti/ClassPrepare/classprep001/classprep001.cpp @ 53610:9cfc8b0c45fd

8214149: Move out assignments when not using NSK*VERIFY macros Summary: Move out the assignments from ifs Reviewed-by: sspitsyn, cjplummer
author jcbeyler
date Wed, 21 Nov 2018 10:46:45 -0800
parents 543a3fb81c4c
children c05ba185a1d3
comparison
equal deleted inserted replaced
1:a98f4869de7c 2:2d4d4bde5b1c
269 if (jvmti == NULL) { 269 if (jvmti == NULL) {
270 printf("JVMTI client was not properly loaded!\n"); 270 printf("JVMTI client was not properly loaded!\n");
271 return; 271 return;
272 } 272 }
273 273
274 if ((err = (jvmti->GetCurrentThread(&prep_thread))) != JVMTI_ERROR_NONE) { 274 err = jvmti->GetCurrentThread(&prep_thread);
275 if (err != JVMTI_ERROR_NONE) {
275 printf("Failed to get current thread: %s (%d)\n", TranslateError(err), err); 276 printf("Failed to get current thread: %s (%d)\n", TranslateError(err), err);
276 result = STATUS_FAILED; 277 result = STATUS_FAILED;
277 return; 278 return;
278 } 279 }
279 280
296 if (jvmti == NULL) { 297 if (jvmti == NULL) {
297 printf("JVMTI client was not properly loaded!\n"); 298 printf("JVMTI client was not properly loaded!\n");
298 return STATUS_FAILED; 299 return STATUS_FAILED;
299 } 300 }
300 301
301 if ((err = (jvmti->GetCurrentThread(&prep_thread))) != JVMTI_ERROR_NONE) { 302 err = jvmti->GetCurrentThread(&prep_thread);
303 if (err != JVMTI_ERROR_NONE) {
302 printf("Failed to get current thread: %s (%d)\n", TranslateError(err), err); 304 printf("Failed to get current thread: %s (%d)\n", TranslateError(err), err);
303 return STATUS_FAILED; 305 return STATUS_FAILED;
304 } 306 }
305 307
306 err = jvmti->SetEventNotificationMode(JVMTI_DISABLE, 308 err = jvmti->SetEventNotificationMode(JVMTI_DISABLE,