8265323: Leftover local variables in PcDesc

Reviewed-by: thartmann, neliasso
This commit is contained in:
Yi Yang 2021-04-19 06:26:12 +00:00 committed by Tobias Hartmann
parent 1ac25b8201
commit a2b0e0f4c0

View File

@ -43,17 +43,12 @@ address PcDesc::real_pc(const CompiledMethod* code) const {
void PcDesc::print_on(outputStream* st, CompiledMethod* code) {
#ifndef PRODUCT
ResourceMark rm;
st->print("PcDesc(pc=" PTR_FORMAT " offset=%x bits=%x):", p2i(real_pc(code)), pc_offset(), _flags);
st->print_cr("PcDesc(pc=" PTR_FORMAT " offset=%x bits=%x):", p2i(real_pc(code)), pc_offset(), _flags);
if (scope_decode_offset() == DebugInformationRecorder::serialized_null) {
st->cr();
return;
}
int tab = 8;
int pos = st->position() + 2; // current column plus two spaces
pos = ((pos+tab-1)/tab)*tab;
for (ScopeDesc* sd = code->scope_desc_at(real_pc(code));
sd != NULL;
sd = sd->sender()) {