8254244: Some code emitted by TemplateTable::branch is unused when running TieredCompilation
Reviewed-by: mdoerr, coleenp, iveresov
This commit is contained in:
parent
a95590d00e
commit
9cecc16747
src/hotspot/cpu
@ -1906,7 +1906,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide)
|
||||
__ dispatch_only(vtos, /*generate_poll*/true);
|
||||
|
||||
if (UseLoopCounter) {
|
||||
if (ProfileInterpreter) {
|
||||
if (ProfileInterpreter && !TieredCompilation) {
|
||||
// Out-of-line code to allocate method data oop.
|
||||
__ bind(profile_method);
|
||||
__ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::profile_method));
|
||||
|
@ -2101,7 +2101,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide) {
|
||||
const Address mask(Rcounters, in_bytes(MethodCounters::backedge_mask_offset()));
|
||||
__ increment_mask_and_jump(Address(Rcounters, be_offset), increment, mask,
|
||||
Rcnt, R4_tmp, eq, &backedge_counter_overflow);
|
||||
} else {
|
||||
} else { // not TieredCompilation
|
||||
// Increment backedge counter in MethodCounters*
|
||||
__ get_method_counters(Rmethod, Rcounters, dispatch, true /*saveRegs*/,
|
||||
Rdisp, R3_bytecode,
|
||||
@ -2166,7 +2166,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide) {
|
||||
__ dispatch_only(vtos, true);
|
||||
|
||||
if (UseLoopCounter) {
|
||||
if (ProfileInterpreter) {
|
||||
if (ProfileInterpreter && !TieredCompilation) {
|
||||
// Out-of-line code to allocate method data oop.
|
||||
__ bind(profile_method);
|
||||
|
||||
|
@ -2007,7 +2007,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide) {
|
||||
|
||||
// Out-of-line code runtime calls.
|
||||
if (UseLoopCounter) {
|
||||
if (ProfileInterpreter) {
|
||||
if (ProfileInterpreter && !TieredCompilation) {
|
||||
// Out-of-line code to allocate method data oop.
|
||||
__ bind(profile_method);
|
||||
|
||||
|
@ -2296,7 +2296,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide) {
|
||||
__ dispatch_only(vtos, true);
|
||||
|
||||
if (UseLoopCounter) {
|
||||
if (ProfileInterpreter) {
|
||||
if (ProfileInterpreter && !TieredCompilation) {
|
||||
// Out-of-line code to allocate method data oop.
|
||||
__ bind(profile_method);
|
||||
__ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::profile_method));
|
||||
|
Loading…
x
Reference in New Issue
Block a user