Skip to content

Commit a2b0e0f

Browse files
y1yang0TobiHartmann
authored andcommittedApr 19, 2021
8265323: Leftover local variables in PcDesc
Reviewed-by: thartmann, neliasso
1 parent 1ac25b8 commit a2b0e0f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎src/hotspot/share/code/pcDesc.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,12 @@ address PcDesc::real_pc(const CompiledMethod* code) const {
4343
void PcDesc::print_on(outputStream* st, CompiledMethod* code) {
4444
#ifndef PRODUCT
4545
ResourceMark rm;
46-
st->print("PcDesc(pc=" PTR_FORMAT " offset=%x bits=%x):", p2i(real_pc(code)), pc_offset(), _flags);
46+
st->print_cr("PcDesc(pc=" PTR_FORMAT " offset=%x bits=%x):", p2i(real_pc(code)), pc_offset(), _flags);
4747

4848
if (scope_decode_offset() == DebugInformationRecorder::serialized_null) {
49-
st->cr();
5049
return;
5150
}
5251

53-
int tab = 8;
54-
int pos = st->position() + 2; // current column plus two spaces
55-
pos = ((pos+tab-1)/tab)*tab;
56-
5752
for (ScopeDesc* sd = code->scope_desc_at(real_pc(code));
5853
sd != NULL;
5954
sd = sd->sender()) {

0 commit comments

Comments
 (0)
Please sign in to comment.