< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS202/hs202t001/hs202t001.cpp
Print this page
rev 52215 : 8212770: Remove spaces before/after () for vmTestbase/jvmti/[s-u]
Summary:
Reviewed-by:
@@ -61,21 +61,21 @@
} else {
jlocation start;
jlocation end;
jvmtiError err ;
err=jvmti->GetMethodLocation(method, &start, &end);
- if ( err != JVMTI_ERROR_NONE ) {
+ if (err != JVMTI_ERROR_NONE) {
nsk_printf(" ## Error occured %s \n",TranslateError(err));
}else {
nsk_printf("\n Start = %d and end = %d ", start , end);
nsk_printf(" setting break points..");
err= jvmti->SetBreakpoint(method, start);
if (err != JVMTI_ERROR_NONE) {
nsk_printf(" ## Error occured %s \n",TranslateError(err));
} else {
nsk_printf(" NO ERRORS ");
- if (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_BREAKPOINT, NULL) == NSK_TRUE ) {
+ if (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_BREAKPOINT, NULL) == NSK_TRUE) {
nsk_printf(" Enabled.. notification event ..\n");
}
}
}
}
@@ -114,12 +114,12 @@
jthread thread,
jmethodID method,
jlocation location) {
jvmtiError err;
err = JVMTI_ERROR_NONE;
- if ( nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_SINGLE_STEP, NULL)
- == NSK_TRUE ) {
+ if (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_SINGLE_STEP, NULL)
+ == NSK_TRUE) {
nsk_printf(" Enabled.. notification event ..");
}
err= jvmti->SetEventNotificationMode(JVMTI_DISABLE,
JVMTI_EVENT_BREAKPOINT, NULL);
if (err == JVMTI_ERROR_NONE) {
@@ -143,18 +143,18 @@
jint Agent_Initialize(JavaVM *vm, char *options, void *reserved) {
jvmtiError rc;
jint code;
nsk_printf("Agent:: VM.. Started..\n");
code = vm->GetEnv((void **)&jvmti, JVMTI_VERSION_1_1);
- if ( code != JNI_OK ) {
+ if (code != JNI_OK) {
nsk_printf("Agent:: Could not load JVMTI interface \n");
return JNI_ERR;
} else {
jvmtiCapabilities caps;
jvmtiEventCallbacks eventCallbacks;
memset(&caps, 0, sizeof(caps));
- 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;
}
caps.can_redefine_classes = 1;
caps.can_suspend = 1;
@@ -171,11 +171,11 @@
rc = jvmti->SetEventCallbacks(&eventCallbacks, sizeof(eventCallbacks));
if (rc != JVMTI_ERROR_NONE) {
nsk_printf(" ## Error occured %s \n",TranslateError(rc));
return JNI_ERR;
}
- if ( nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_CLASS_PREPARE, NULL) == NSK_TRUE ) {
+ if (nsk_jvmti_enableNotification(jvmti,JVMTI_EVENT_CLASS_PREPARE, NULL) == NSK_TRUE) {
nsk_printf("Agent :: NOTIFICATIONS ARE ENABLED \n");
} else {
nsk_printf(" Error in Eanableing Notifications..");
}
}
@@ -190,11 +190,11 @@
jboolean retvalue;
jint state;
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");
retvalue=JNI_OK;
return retvalue;
< prev index next >