Mercurial > hg > graal-compiler
comparison src/share/vm/prims/jvmtiRedefineClassesTrace.hpp @ 8021:8d9fc28831cc
7182152: Instrumentation hot swap test incorrect monitor count
Summary: Add/refine new tracing support using -XX:TraceRedefineClasses=16384.
Reviewed-by: coleenp, acorn, sspitsyn
author | dcubed |
---|---|
date | Wed, 06 Feb 2013 14:31:37 -0800 |
parents | f95d63e2154a |
children | 6b19fe41b577 |
comparison
equal
deleted
inserted
replaced
7988:f3ea1af9207a | 8021:8d9fc28831cc |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
52 // 0x00000400 | 1024 - previous class weak reference mgmt during | 52 // 0x00000400 | 1024 - previous class weak reference mgmt during |
53 // add previous ops (GC) | 53 // add previous ops (GC) |
54 // 0x00000800 | 2048 - previous class breakpoint mgmt | 54 // 0x00000800 | 2048 - previous class breakpoint mgmt |
55 // 0x00001000 | 4096 - detect calls to obsolete methods | 55 // 0x00001000 | 4096 - detect calls to obsolete methods |
56 // 0x00002000 | 8192 - fail a guarantee() in addition to detection | 56 // 0x00002000 | 8192 - fail a guarantee() in addition to detection |
57 // 0x00004000 | 16384 - unused | 57 // 0x00004000 | 16384 - detect old/obsolete methods in metadata |
58 // 0x00008000 | 32768 - old/new method matching/add/delete | 58 // 0x00008000 | 32768 - old/new method matching/add/delete |
59 // 0x00010000 | 65536 - impl details: CP size info | 59 // 0x00010000 | 65536 - impl details: CP size info |
60 // 0x00020000 | 131072 - impl details: CP merge pass info | 60 // 0x00020000 | 131072 - impl details: CP merge pass info |
61 // 0x00040000 | 262144 - impl details: CP index maps | 61 // 0x00040000 | 262144 - impl details: CP index maps |
62 // 0x00080000 | 524288 - impl details: modified CP index values | 62 // 0x00080000 | 524288 - impl details: modified CP index values |
78 #define RC_TRACE(level, args) \ | 78 #define RC_TRACE(level, args) \ |
79 if ((TraceRedefineClasses & level) != 0) { \ | 79 if ((TraceRedefineClasses & level) != 0) { \ |
80 ResourceMark rm; \ | 80 ResourceMark rm; \ |
81 tty->print("RedefineClasses-0x%x: ", level); \ | 81 tty->print("RedefineClasses-0x%x: ", level); \ |
82 tty->print_cr args; \ | 82 tty->print_cr args; \ |
83 } while (0) | |
84 | |
85 #define RC_TRACE_NO_CR(level, args) \ | |
86 if ((TraceRedefineClasses & level) != 0) { \ | |
87 ResourceMark rm; \ | |
88 tty->print("RedefineClasses-0x%x: ", level); \ | |
89 tty->print args; \ | |
83 } while (0) | 90 } while (0) |
84 | 91 |
85 #define RC_TRACE_WITH_THREAD(level, thread, args) \ | 92 #define RC_TRACE_WITH_THREAD(level, thread, args) \ |
86 if ((TraceRedefineClasses & level) != 0) { \ | 93 if ((TraceRedefineClasses & level) != 0) { \ |
87 ResourceMark rm(thread); \ | 94 ResourceMark rm(thread); \ |