90 // It is possible for this block to be skipped, if a garbage |
90 // It is possible for this block to be skipped, if a garbage |
91 // _current_method pointer happens to have the same bits as |
91 // _current_method pointer happens to have the same bits as |
92 // the incoming method. We could lose a line of trace output. |
92 // the incoming method. We could lose a line of trace output. |
93 // This is acceptable in a debug-only feature. |
93 // This is acceptable in a debug-only feature. |
94 st->cr(); |
94 st->cr(); |
95 st->print("[%d] ", (int) Thread::current()->osthread()->thread_id()); |
95 st->print("[%ld] ", (long) Thread::current()->osthread()->thread_id()); |
96 method->print_name(st); |
96 method->print_name(st); |
97 st->cr(); |
97 st->cr(); |
98 _current_method = method(); |
98 _current_method = method(); |
99 } |
99 } |
100 Bytecodes::Code code; |
100 Bytecodes::Code code; |
104 } else { |
104 } else { |
105 code = Bytecodes::code_at(method(), bcp); |
105 code = Bytecodes::code_at(method(), bcp); |
106 } |
106 } |
107 _code = code; |
107 _code = code; |
108 int bci = bcp - method->code_base(); |
108 int bci = bcp - method->code_base(); |
109 st->print("[%d] ", (int) Thread::current()->osthread()->thread_id()); |
109 st->print("[%ld] ", (long) Thread::current()->osthread()->thread_id()); |
110 if (Verbose) { |
110 if (Verbose) { |
111 st->print("%8d %4d " INTPTR_FORMAT " " INTPTR_FORMAT " %s", |
111 st->print("%8d %4d " INTPTR_FORMAT " " INTPTR_FORMAT " %s", |
112 BytecodeCounter::counter_value(), bci, tos, tos2, Bytecodes::name(code)); |
112 BytecodeCounter::counter_value(), bci, tos, tos2, Bytecodes::name(code)); |
113 } else { |
113 } else { |
114 st->print("%8d %4d %s", |
114 st->print("%8d %4d %s", |