< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/FieldAccess/fieldacc003/fieldacc003.cpp

Print this page
rev 52200 : [mq]: spaces


 148         printf(">>>     object: 0x%p\n", obj);
 149         printf(">>> ... done\n");
 150     }
 151     for (i = 0; i < sizeof(watches)/sizeof(watch_info); i++) {
 152         if (watch.fid == watches[i].fid) {
 153             if (watch.m_cls == NULL ||
 154                     strcmp(watch.m_cls, watches[i].m_cls) != 0) {
 155                 printf("(watch#%" PRIuPTR ") wrong class: \"%s\", expected: \"%s\"\n",
 156                        i, watch.m_cls, watches[i].m_cls);
 157                 result = STATUS_FAILED;
 158             }
 159             if (watch.m_name == NULL ||
 160                     strcmp(watch.m_name, watches[i].m_name) != 0) {
 161                 printf("(watch#%" PRIuPTR ") wrong method name: \"%s\"",
 162                        i, watch.m_name);
 163                 printf(", expected: \"%s\"\n", watches[i].m_name);
 164                 result = STATUS_FAILED;
 165             }
 166             if (watch.m_sig == NULL ||
 167                     strcmp(watch.m_sig, watches[i].m_sig) != 0) {
 168                 printf("(watch#%" PRIuPTR " ) wrong method sig: \"%s\"",
 169                        i, watch.m_sig);
 170                 printf(", expected: \"%s\"\n", watches[i].m_sig);
 171                 result = STATUS_FAILED;
 172             }
 173             if (watch.loc != watches[i].loc) {
 174                 printf("(watch#%" PRIuPTR ") wrong location: 0x%x%08x",
 175                        i, (jint)(watch.loc >> 32), (jint)watch.loc);
 176                 printf(", expected: 0x%x%08x\n",
 177                        (jint)(watches[i].loc >> 32), (jint)watches[i].loc);
 178                 result = STATUS_FAILED;
 179             }
 180             if (watch.f_name == NULL ||
 181                     strcmp(watch.f_name, watches[i].f_name) != 0) {
 182                 printf("(watch#%" PRIuPTR ") wrong field name: \"%s\"",
 183                        i, watch.f_name);
 184                 printf(", expected: \"%s\"\n", watches[i].f_name);
 185                 result = STATUS_FAILED;
 186             }
 187             if (watch.f_sig == NULL ||
 188                     strcmp(watch.f_sig, watches[i].f_sig) != 0) {




 148         printf(">>>     object: 0x%p\n", obj);
 149         printf(">>> ... done\n");
 150     }
 151     for (i = 0; i < sizeof(watches)/sizeof(watch_info); i++) {
 152         if (watch.fid == watches[i].fid) {
 153             if (watch.m_cls == NULL ||
 154                     strcmp(watch.m_cls, watches[i].m_cls) != 0) {
 155                 printf("(watch#%" PRIuPTR ") wrong class: \"%s\", expected: \"%s\"\n",
 156                        i, watch.m_cls, watches[i].m_cls);
 157                 result = STATUS_FAILED;
 158             }
 159             if (watch.m_name == NULL ||
 160                     strcmp(watch.m_name, watches[i].m_name) != 0) {
 161                 printf("(watch#%" PRIuPTR ") wrong method name: \"%s\"",
 162                        i, watch.m_name);
 163                 printf(", expected: \"%s\"\n", watches[i].m_name);
 164                 result = STATUS_FAILED;
 165             }
 166             if (watch.m_sig == NULL ||
 167                     strcmp(watch.m_sig, watches[i].m_sig) != 0) {
 168                 printf("(watch#%" PRIuPTR ") wrong method sig: \"%s\"",
 169                        i, watch.m_sig);
 170                 printf(", expected: \"%s\"\n", watches[i].m_sig);
 171                 result = STATUS_FAILED;
 172             }
 173             if (watch.loc != watches[i].loc) {
 174                 printf("(watch#%" PRIuPTR ") wrong location: 0x%x%08x",
 175                        i, (jint)(watch.loc >> 32), (jint)watch.loc);
 176                 printf(", expected: 0x%x%08x\n",
 177                        (jint)(watches[i].loc >> 32), (jint)watches[i].loc);
 178                 result = STATUS_FAILED;
 179             }
 180             if (watch.f_name == NULL ||
 181                     strcmp(watch.f_name, watches[i].f_name) != 0) {
 182                 printf("(watch#%" PRIuPTR ") wrong field name: \"%s\"",
 183                        i, watch.f_name);
 184                 printf(", expected: \"%s\"\n", watches[i].f_name);
 185                 result = STATUS_FAILED;
 186             }
 187             if (watch.f_sig == NULL ||
 188                     strcmp(watch.f_sig, watches[i].f_sig) != 0) {


< prev index next >