Skip to content

Commit 9dc8826

Browse files
Dmitry Chuykoadinn
authored andcommitted
8254244: Some code emitted by TemplateTable::branch is unused when running TieredCompilation
Reviewed-by: adinn Backport-of: 9cecc16
1 parent d31ceee commit 9dc8826

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/hotspot/cpu/aarch64/templateTable_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1910,7 +1910,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide)
19101910
__ dispatch_only(vtos, /*generate_poll*/true);
19111911

19121912
if (UseLoopCounter) {
1913-
if (ProfileInterpreter) {
1913+
if (ProfileInterpreter && !TieredCompilation) {
19141914
// Out-of-line code to allocate method data oop.
19151915
__ bind(profile_method);
19161916
__ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::profile_method));

src/hotspot/cpu/arm/templateTable_arm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide) {
23742374
const Address mask(Rcounters, in_bytes(MethodCounters::backedge_mask_offset()));
23752375
__ increment_mask_and_jump(Address(Rcounters, be_offset), increment, mask,
23762376
Rcnt, R4_tmp, eq, &backedge_counter_overflow);
2377-
} else {
2377+
} else { // not TieredCompilation
23782378
// Increment backedge counter in MethodCounters*
23792379
__ get_method_counters(Rmethod, Rcounters, dispatch, true /*saveRegs*/,
23802380
Rdisp, R3_bytecode,
@@ -2447,7 +2447,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide) {
24472447
__ dispatch_only(vtos);
24482448

24492449
if (UseLoopCounter) {
2450-
if (ProfileInterpreter) {
2450+
if (ProfileInterpreter && !TieredCompilation) {
24512451
// Out-of-line code to allocate method data oop.
24522452
__ bind(profile_method);
24532453

src/hotspot/cpu/s390/templateTable_s390.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide) {
20102010

20112011
// Out-of-line code runtime calls.
20122012
if (UseLoopCounter) {
2013-
if (ProfileInterpreter) {
2013+
if (ProfileInterpreter && !TieredCompilation) {
20142014
// Out-of-line code to allocate method data oop.
20152015
__ bind(profile_method);
20162016

src/hotspot/cpu/x86/templateTable_x86.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2297,7 +2297,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide) {
22972297
__ dispatch_only(vtos, true);
22982298

22992299
if (UseLoopCounter) {
2300-
if (ProfileInterpreter) {
2300+
if (ProfileInterpreter && !TieredCompilation) {
23012301
// Out-of-line code to allocate method data oop.
23022302
__ bind(profile_method);
23032303
__ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::profile_method));

0 commit comments

Comments
 (0)