Skip to content

Commit 3187b27

Browse files
committed
StackMapTable
Verified with command: java -Xlog:verification=debug:log.txt App.java
1 parent 42e1c9f commit 3187b27

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/hotspot/share/classfile/stackMapFrame.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ TypeOrigin StackMapFrame::stack_top_ctx() {
337337
}
338338

339339
void StackMapFrame::print_on(outputStream* str) const {
340-
str->indent().print_cr("bci: @%d", _offset);
341-
str->indent().print_cr("flags: {%s }",
340+
str->print_cr("bci: @%d", _offset);
341+
str->print_cr("flags: {%s }",
342342
flag_this_uninit() ? " flagThisUninit" : "");
343-
str->indent().print("locals: {");
343+
str->print("locals: {");
344344
for (int32_t i = 0; i < _locals_size; ++i) {
345345
str->print(" ");
346346
_locals[i].print_on(str);
@@ -349,7 +349,7 @@ void StackMapFrame::print_on(outputStream* str) const {
349349
}
350350
}
351351
str->print_cr(" }");
352-
str->indent().print("stack: {");
352+
str->print("stack: {");
353353
for (int32_t j = 0; j < _stack_size; ++j) {
354354
str->print(" ");
355355
_stack[j].print_on(str);

src/hotspot/share/classfile/stackMapTable.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ void StackMapTable::check_jump_target(
143143
}
144144

145145
void StackMapTable::print_on(outputStream* str) const {
146-
str->indent().print_cr("StackMapTable: frame_count = %d", _frame_count);
147-
str->indent().print_cr("table = { ");
146+
str->print_cr("StackMapTable: frame_count = %d", _frame_count);
147+
str->print_cr("table = {");
148148
{
149-
streamIndentor si(str);
149+
StreamAutoIndentor sai(str, 2);
150150
for (int32_t i = 0; i < _frame_count; ++i) {
151151
_frame_array->at(i)->print_on(str);
152152
}

0 commit comments

Comments
 (0)