Mercurial > hg > graal-compiler
comparison src/share/vm/interpreter/bytecodeTracer.cpp @ 3960:f08d439fab8c
7089790: integrate bsd-port changes
Reviewed-by: kvn, twisti, jrose
Contributed-by: Kurt Miller <kurt@intricatesoftware.com>, Greg Lewis <glewis@eyesbeyond.com>, Jung-uk Kim <jkim@freebsd.org>, Christos Zoulas <christos@zoulas.com>, Landon Fuller <landonf@plausible.coop>, The FreeBSD Foundation <board@freebsdfoundation.org>, Michael Franz <mvfranz@gmail.com>, Roger Hoover <rhoover@apple.com>, Alexander Strange <astrange@apple.com>
author | never |
---|---|
date | Sun, 25 Sep 2011 16:03:29 -0700 |
parents | a80577f854f9 |
children | b20d64f83668 |
comparison
equal
deleted
inserted
replaced
3959:eda6988c0d81 | 3960:f08d439fab8c |
---|---|
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", |