Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/ci/ciMethod.java @ 6972:bd7a7ce2e264
6830717: replay of compilations would help with debugging
Summary: When java process crashed in compiler thread, repeat the compilation process will help finding root cause. This is done with using SA dump application class data and replay data from core dump, then use debug version of jvm to recompile the problematic java method.
Reviewed-by: kvn, twisti, sspitsyn
Contributed-by: yumin.qi@oracle.com
author | minqi |
---|---|
date | Mon, 12 Nov 2012 14:03:53 -0800 |
parents | da91efe96a93 |
children | cbfe859bd244 |
comparison
equal
deleted
inserted
replaced
6965:3be318ecfae5 | 6972:bd7a7ce2e264 |
---|---|
14 * | 14 * |
15 * You should have received a copy of the GNU General Public License version | 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, | 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. | 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
18 * | 18 * |
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * CA 95054 USA or visit www.sun.com if you need additional information or | 20 * or visit www.oracle.com if you need additional information or have any |
21 * have any questions. | 21 * questions. |
22 * | 22 * |
23 */ | 23 */ |
24 | 24 |
25 package sun.jvm.hotspot.ci; | 25 package sun.jvm.hotspot.ci; |
26 | 26 |
86 public void printShortName(PrintStream st) { | 86 public void printShortName(PrintStream st) { |
87 Method method = method(); | 87 Method method = method(); |
88 st.printf(" %s::%s", method.getMethodHolder().getName().asString().replace('/', '.'), | 88 st.printf(" %s::%s", method.getMethodHolder().getName().asString().replace('/', '.'), |
89 method.getName().asString()); | 89 method.getName().asString()); |
90 } | 90 } |
91 | |
92 public void dumpReplayData(PrintStream out) { | |
93 Method method = (Method)getMetadata(); | |
94 NMethod nm = method.getNativeMethod(); | |
95 Klass holder = method.getMethodHolder(); | |
96 out.println("ciMethod " + | |
97 holder.getName().asString() + " " + | |
98 OopUtilities.escapeString(method.getName().asString()) + " " + | |
99 method.getSignature().asString() + " " + | |
100 method.getInvocationCounter() + " " + | |
101 method.getBackedgeCounter() + " " + | |
102 interpreterInvocationCount() + " " + | |
103 interpreterThrowoutCount() + " " + | |
104 instructionsSize()); | |
105 } | |
91 } | 106 } |