< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS202/hs202t002/hs202t002.cpp
Print this page
rev 52215 : 8212770: Remove spaces before/after () for vmTestbase/jvmti/[s-u]
Summary:
Reviewed-by:
@@ -55,11 +55,11 @@
JNIEnv* jni_env,
jthread thread,
jmethodID method,
jboolean was_popped_by_exception,
jvalue return_value) {
- if ( was_popped_by_exception ) {
+ if (was_popped_by_exception) {
char * name;
char * signature;
char * generic ;
jvmtiError err;
err= JVMTI_ERROR_NONE;
@@ -68,11 +68,11 @@
jclass cls;
char fileName[512];
nsk_jvmti_getFileName(redefineNumber, FILE_NAME, fileName,
sizeof(fileName)/sizeof(char));
jvmti_env->GetMethodDeclaringClass(method, &cls);
- if ( nsk_jvmti_redefineClass(jvmti_env, cls,fileName) == NSK_TRUE ) {
+ if (nsk_jvmti_redefineClass(jvmti_env, cls,fileName) == NSK_TRUE) {
nsk_printf(" Agent:: redefine class success ..\n");
nsk_printf("Agent::SUSPENDING>> \n");
err=jvmti_env->SuspendThread(thread);
if (err == JVMTI_ERROR_NONE) {
thread_suspend_status = suspended;
@@ -100,18 +100,18 @@
jint Agent_Initialize(JavaVM *vm, char *options, void *reserved) {
jint rc ;
nsk_printf("Agent:: VM.. Started..\n");
redefineNumber=0;
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;
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;
@@ -141,11 +141,11 @@
jvmtiError err = JVMTI_ERROR_NONE;
jboolean retvalue = JNI_FALSE;
jint state;
nsk_printf("Agent:: POPPING THE FRAME..\n");
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:: PopFrame succeeded..\n");
return JNI_TRUE;
} else {
< prev index next >