Skip to content

Commit 743a85d

Browse files
committedFeb 20, 2023
8302656: Missing spaces in output of -XX:+CIPrintMethodCodes
Reviewed-by: kvn, thartmann
1 parent 432cf68 commit 743a85d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/hotspot/share/interpreter/bytecodeTracer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,8 @@ void BytecodePrinter::bytecode_epilog(int bci, outputStream* st) {
652652
if (mdo != nullptr) {
653653
ProfileData* data = mdo->bci_to_data(bci);
654654
if (data != nullptr) {
655-
st->print(" %d", mdo->dp_to_di(data->dp()));
656-
st->fill_to(6);
655+
st->print(" %d ", mdo->dp_to_di(data->dp()));
656+
st->fill_to(7);
657657
data->print_data_on(st, mdo);
658658
}
659659
}

‎src/hotspot/share/oops/methodData.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ void ProfileData::print_data_on(outputStream* st, const MethodData* md) const {
126126
}
127127

128128
void ProfileData::print_shared(outputStream* st, const char* name, const char* extra) const {
129-
st->print("bci: %d", bci());
130-
st->fill_to(tab_width_one);
129+
st->print("bci: %d ", bci());
130+
st->fill_to(tab_width_one + 1);
131131
st->print("%s", name);
132132
tab(st);
133133
int trap = trap_state();

0 commit comments

Comments
 (0)
Please sign in to comment.