comparison agent/src/share/classes/sun/jvm/hotspot/oops/Method.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 18fb7da42534
children b2dbd323c668
comparison
equal deleted inserted replaced
6965:3be318ecfae5 6972:bd7a7ce2e264
356 buf.append("("); 356 buf.append("(");
357 new SignatureConverter(getSignature(), buf).iterateParameters(); 357 new SignatureConverter(getSignature(), buf).iterateParameters();
358 buf.append(")"); 358 buf.append(")");
359 return buf.toString().replace('/', '.'); 359 return buf.toString().replace('/', '.');
360 } 360 }
361
362 public void dumpReplayData(PrintStream out) {
363 NMethod nm = getNativeMethod();
364 int code_size = 0;
365 if (nm != null) {
366 code_size = (int)nm.codeEnd().minus(nm.getVerifiedEntryPoint());
367 }
368 Klass holder = getMethodHolder();
369 out.println("ciMethod " +
370 holder.getName().asString() + " " +
371 OopUtilities.escapeString(getName().asString()) + " " +
372 getSignature().asString() + " " +
373 getInvocationCounter() + " " +
374 getBackedgeCounter() + " " +
375 interpreterInvocationCount() + " " +
376 interpreterThrowoutCount() + " " +
377 code_size);
378 }
379
361 public int interpreterThrowoutCount() { 380 public int interpreterThrowoutCount() {
362 return (int) interpreterThrowoutCountField.getValue(this); 381 return (int) interpreterThrowoutCountField.getValue(this);
363 } 382 }
364 383
365 public int interpreterInvocationCount() { 384 public int interpreterInvocationCount() {