13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/javaClasses.inline.hpp"
27 #include "interpreter/bytecodeHistogram.hpp"
28 #include "interpreter/bytecodeTracer.hpp"
29 #include "interpreter/bytecodes.hpp"
30 #include "interpreter/interpreter.hpp"
31 #include "interpreter/interpreterRuntime.hpp"
32 #include "memory/resourceArea.hpp"
33 #include "oops/methodData.hpp"
34 #include "oops/method.hpp"
35 #include "runtime/mutexLocker.hpp"
36 #include "runtime/timer.hpp"
37 #include "utilities/align.hpp"
38
39
40 // Standard closure for BytecodeTracer: prints the current bytecode
41 // and its attributes using bytecode-specific information.
42
43 class BytecodePrinter: public BytecodeClosure {
44 private:
45 // %%% This field is not GC-ed, and so can contain garbage
46 // between critical sections. Use only pointer-comparison
47 // operations on the pointer, except within a critical section.
48 // (Also, ensure that occasional false positives are benign.)
49 Method* _current_method;
50 bool _is_wide;
51 Bytecodes::Code _code;
52 address _next_pc; // current decoding position
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/javaClasses.inline.hpp"
27 #include "interpreter/bytecodeHistogram.hpp"
28 #include "interpreter/bytecodeTracer.hpp"
29 #include "interpreter/bytecodes.hpp"
30 #include "interpreter/interpreter.hpp"
31 #include "interpreter/interpreterRuntime.hpp"
32 #include "memory/resourceArea.hpp"
33 #include "oops/constantPool.inline.hpp"
34 #include "oops/methodData.hpp"
35 #include "oops/method.hpp"
36 #include "runtime/mutexLocker.hpp"
37 #include "runtime/timer.hpp"
38 #include "utilities/align.hpp"
39
40
41 // Standard closure for BytecodeTracer: prints the current bytecode
42 // and its attributes using bytecode-specific information.
43
44 class BytecodePrinter: public BytecodeClosure {
45 private:
46 // %%% This field is not GC-ed, and so can contain garbage
47 // between critical sections. Use only pointer-comparison
48 // operations on the pointer, except within a critical section.
49 // (Also, ensure that occasional false positives are benign.)
50 Method* _current_method;
51 bool _is_wide;
52 Bytecodes::Code _code;
53 address _next_pc; // current decoding position
|