test/hotspot/jtreg/vmTestbase/nsk/jvmti/ClassPrepare/classprep001/classprep001.cpp
changeset 52642 9cfc8b0c45fd
parent 51699 543a3fb81c4c
child 52776 c05ba185a1d3
equal deleted inserted replaced
52641:09a3f379b927 52642:9cfc8b0c45fd
   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,