< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP02/sp02t003/sp02t003.cpp

Print this page
rev 52215 : 8212770: Remove spaces before/after () for vmTestbase/jvmti/[s-u]
Summary:
Reviewed-by:


 310                                         (long)frameStack[j].location);
 311             /* query frame location */
 312             if (!NSK_JVMTI_VERIFY(
 313                     jvmti->GetFrameLocation(threadsDesc[i].thread, j, &qMethod, &qLocation))) {
 314                 nsk_jvmti_setFailStatus();
 315                 continue;
 316             }
 317 
 318             NSK_DISPLAY2("      queried: method: %p, location: %ld\n",
 319                                         (void*)qMethod, (long)qLocation);
 320 
 321             /* check frame equalaty */
 322             if (frameStack[j].method != qMethod) {
 323                 NSK_COMPLAIN6("Different method in stack frame #%d for %s thread #%d (%s):\n"
 324                             "#   GetStackTrace():    %p\n"
 325                             "#   GetFrameLocation(): %p\n",
 326                             j, kind, i, threadsDesc[i].threadName,
 327                             (void*)frameStack[j].method, (void*)qMethod);
 328                 nsk_jvmti_setFailStatus();
 329             }
 330             if ( (suspended == NSK_TRUE) && (frameStack[j].location != qLocation) ) {
 331                 NSK_COMPLAIN6("Different location in stack frame #%d for %s thread #%d (%s):\n"
 332                             "#   GetStackTrace():    %ld\n"
 333                             "#   GetFrameLocation(): %ld\n",
 334                             j, kind, i, threadsDesc[i].threadName,
 335                             (long)frameStack[j].location, (long)qLocation);
 336                 nsk_jvmti_setFailStatus();
 337             }
 338 
 339             /* find expected method */
 340             if (frameStack[j].method == threadsDesc[i].method) {
 341                 found++;
 342                 NSK_DISPLAY1("        found expected method: %s\n",
 343                                                 threadsDesc[i].methodName);
 344             }
 345         }
 346 
 347         /* check if expected method frame found */
 348         if (found <= 0) {
 349             NSK_COMPLAIN3("No expected method frame for %s thread #%d (%s)\n",
 350                                 kind, i, threadsDesc[i].threadName);




 310                                         (long)frameStack[j].location);
 311             /* query frame location */
 312             if (!NSK_JVMTI_VERIFY(
 313                     jvmti->GetFrameLocation(threadsDesc[i].thread, j, &qMethod, &qLocation))) {
 314                 nsk_jvmti_setFailStatus();
 315                 continue;
 316             }
 317 
 318             NSK_DISPLAY2("      queried: method: %p, location: %ld\n",
 319                                         (void*)qMethod, (long)qLocation);
 320 
 321             /* check frame equalaty */
 322             if (frameStack[j].method != qMethod) {
 323                 NSK_COMPLAIN6("Different method in stack frame #%d for %s thread #%d (%s):\n"
 324                             "#   GetStackTrace():    %p\n"
 325                             "#   GetFrameLocation(): %p\n",
 326                             j, kind, i, threadsDesc[i].threadName,
 327                             (void*)frameStack[j].method, (void*)qMethod);
 328                 nsk_jvmti_setFailStatus();
 329             }
 330             if ((suspended == NSK_TRUE) && (frameStack[j].location != qLocation)) {
 331                 NSK_COMPLAIN6("Different location in stack frame #%d for %s thread #%d (%s):\n"
 332                             "#   GetStackTrace():    %ld\n"
 333                             "#   GetFrameLocation(): %ld\n",
 334                             j, kind, i, threadsDesc[i].threadName,
 335                             (long)frameStack[j].location, (long)qLocation);
 336                 nsk_jvmti_setFailStatus();
 337             }
 338 
 339             /* find expected method */
 340             if (frameStack[j].method == threadsDesc[i].method) {
 341                 found++;
 342                 NSK_DISPLAY1("        found expected method: %s\n",
 343                                                 threadsDesc[i].methodName);
 344             }
 345         }
 346 
 347         /* check if expected method frame found */
 348         if (found <= 0) {
 349             NSK_COMPLAIN3("No expected method frame for %s thread #%d (%s)\n",
 350                                 kind, i, threadsDesc[i].threadName);


< prev index next >