test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS203/hs203t002/hs203t002.cpp
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS203/hs203t002/hs203t002.cpp Thu Oct 25 12:09:41 2018 +0100
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS203/hs203t002/hs203t002.cpp Thu Oct 25 08:18:42 2018 -0700
@@ -73,7 +73,7 @@
if (err == JVMTI_ERROR_NONE) {
nsk_printf("Agent:: NO ERRORS FOUND \n");
err= jvmti->SetBreakpoint(method, start);
- if ( err == JVMTI_ERROR_NONE) {
+ if (err == JVMTI_ERROR_NONE) {
nsk_printf("Agent:: Breakpoint set \n");
} else {
nsk_printf("Agent:: ***ERROR OCCURED ... in SET BREAK POINT ERROR \n");
@@ -98,14 +98,14 @@
nsk_printf(" %d..",redefineNumber);
nsk_jvmti_getFileName(redefineNumber, FILE_NAME, fileName, sizeof(fileName)/sizeof(char));
- if( nsk_jvmti_redefineClass(jvmti, threadClass,fileName) == NSK_TRUE ) {
+ if(nsk_jvmti_redefineClass(jvmti, threadClass,fileName) == NSK_TRUE) {
nsk_printf("Agent:: Redefined..\n");
} else {
nsk_printf(" Failed to redefine..\n");
return;
}
err=jvmti->SuspendThread(thread);
- if ( err == JVMTI_ERROR_NONE ) {
+ if (err == JVMTI_ERROR_NONE) {
nsk_printf("Agent:: Succeded in suspending..\n");
} else {
nsk_printf(" ## Error occured %s \n",TranslateError(err));
@@ -118,7 +118,7 @@
jmethodID method,
jlocation location) {
nsk_printf("Agent::... BreakPoint Reached..\n");
- if ( nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_SINGLE_STEP,thread) == JNI_OK ) {
+ if (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_SINGLE_STEP,thread) == JNI_OK) {
nsk_printf(" .... Enabled..\n");
}
return;
@@ -140,13 +140,13 @@
jint rc ;
nsk_printf("Agent:: VM.. Started..\n");
rc=vm->GetEnv((void **)&jvmti, JVMTI_VERSION_1_1);
- if ( rc!= JNI_OK ) {
+ if (rc!= JNI_OK) {
nsk_printf("Agent:: Could not load JVMTI interface \n");
return JNI_ERR;
} else {
jvmtiCapabilities caps;
jvmtiEventCallbacks eventCallbacks;
- if (nsk_jvmti_parseOptions(options) == NSK_FALSE ) {
+ if (nsk_jvmti_parseOptions(options) == NSK_FALSE) {
nsk_printf("# error agent Failed to parse options \n");
return JNI_ERR;
}
@@ -168,10 +168,10 @@
nsk_printf(" Agent:: Error occured while setting event call back \n");
return JNI_ERR;
}
- if ( (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_CLASS_LOAD,
+ if ((nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_CLASS_LOAD,
NULL) == NSK_TRUE) &&
(nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_BREAKPOINT,
- NULL) == NSK_TRUE ) ) {
+ NULL) == NSK_TRUE)) {
nsk_printf("Agent :: NOTIFICATIONS ARE ENABLED \n");
} else {
nsk_printf(" Error in Eanableing Notifications..");
@@ -191,7 +191,7 @@
nsk_printf("Agent:: POPING THE FRAME....\n");
retvalue = JNI_FALSE;
jvmti->GetThreadState(thread, &state);
- if ( state & JVMTI_THREAD_STATE_SUSPENDED) {
+ if (state & JVMTI_THREAD_STATE_SUSPENDED) {
err = jvmti->PopFrame(thread);
if (err == JVMTI_ERROR_NONE) {
nsk_printf("Agent:: NO Errors poped very well ..\n");