< prev index next >

src/hotspot/share/ci/ciReplay.cpp

Print this page




 515       }
 516       if (_ci_inline_records != NULL && _ci_inline_records->length() > 0) {
 517         // Found inlining record for the requested method.
 518         return _ci_inline_records;
 519       }
 520       line_no++;
 521     }
 522     return NULL;
 523   }
 524 
 525   // compile <klass> <name> <signature> <entry_bci> <comp_level> inline <count> <depth> <bci> <klass> <name> <signature> ...
 526   void process_compile(TRAPS) {
 527     Method* method = parse_method(CHECK);
 528     if (had_error()) return;
 529     int entry_bci = parse_int("entry_bci");
 530     const char* comp_level_label = "comp_level";
 531     int comp_level = parse_int(comp_level_label);
 532     // old version w/o comp_level
 533     if (had_error() && (error_message() == comp_level_label)) {
 534       // use highest available tier
 535       comp_level = TieredCompilation ? TieredStopAtLevel : CompLevel_highest_tier;




 536     }
 537     if (!is_valid_comp_level(comp_level)) {
 538       return;
 539     }
 540     if (_imethod != NULL) {
 541       // Replay Inlining
 542       if (entry_bci != _entry_bci || comp_level != _comp_level) {
 543         return;
 544       }
 545       const char* iklass_name  = _imethod->method_holder()->name()->as_utf8();
 546       const char* imethod_name = _imethod->name()->as_utf8();
 547       const char* isignature   = _imethod->signature()->as_utf8();
 548       const char* klass_name   = method->method_holder()->name()->as_utf8();
 549       const char* method_name  = method->name()->as_utf8();
 550       const char* signature    = method->signature()->as_utf8();
 551       if (strcmp(iklass_name,  klass_name)  != 0 ||
 552           strcmp(imethod_name, method_name) != 0 ||
 553           strcmp(isignature,   signature)   != 0) {
 554         return;
 555       }




 515       }
 516       if (_ci_inline_records != NULL && _ci_inline_records->length() > 0) {
 517         // Found inlining record for the requested method.
 518         return _ci_inline_records;
 519       }
 520       line_no++;
 521     }
 522     return NULL;
 523   }
 524 
 525   // compile <klass> <name> <signature> <entry_bci> <comp_level> inline <count> <depth> <bci> <klass> <name> <signature> ...
 526   void process_compile(TRAPS) {
 527     Method* method = parse_method(CHECK);
 528     if (had_error()) return;
 529     int entry_bci = parse_int("entry_bci");
 530     const char* comp_level_label = "comp_level";
 531     int comp_level = parse_int(comp_level_label);
 532     // old version w/o comp_level
 533     if (had_error() && (error_message() == comp_level_label)) {
 534       // use highest available tier
 535       if (TieredCompilation) {
 536         comp_level = TieredStopAtLevel;
 537       } else {
 538         comp_level = CompLevel_highest_tier;
 539       }
 540     }
 541     if (!is_valid_comp_level(comp_level)) {
 542       return;
 543     }
 544     if (_imethod != NULL) {
 545       // Replay Inlining
 546       if (entry_bci != _entry_bci || comp_level != _comp_level) {
 547         return;
 548       }
 549       const char* iklass_name  = _imethod->method_holder()->name()->as_utf8();
 550       const char* imethod_name = _imethod->name()->as_utf8();
 551       const char* isignature   = _imethod->signature()->as_utf8();
 552       const char* klass_name   = method->method_holder()->name()->as_utf8();
 553       const char* method_name  = method->name()->as_utf8();
 554       const char* signature    = method->signature()->as_utf8();
 555       if (strcmp(iklass_name,  klass_name)  != 0 ||
 556           strcmp(imethod_name, method_name) != 0 ||
 557           strcmp(isignature,   signature)   != 0) {
 558         return;
 559       }


< prev index next >