提交 7fc7025a 编写于 作者: S sla

8013591: compiler/ciReplay/TestSA.sh fails in nightly

Reviewed-by: coleenp, rbackman, dholmes
上级 02ab8ae9
...@@ -97,8 +97,8 @@ public class ciMethod extends ciMetadata { ...@@ -97,8 +97,8 @@ public class ciMethod extends ciMetadata {
holder.getName().asString() + " " + holder.getName().asString() + " " +
OopUtilities.escapeString(method.getName().asString()) + " " + OopUtilities.escapeString(method.getName().asString()) + " " +
method.getSignature().asString() + " " + method.getSignature().asString() + " " +
method.getInvocationCounter() + " " + method.getInvocationCount() + " " +
method.getBackedgeCounter() + " " + method.getBackedgeCount() + " " +
interpreterInvocationCount() + " " + interpreterInvocationCount() + " " +
interpreterThrowoutCount() + " " + interpreterThrowoutCount() + " " +
instructionsSize()); instructionsSize());
......
...@@ -24,15 +24,21 @@ ...@@ -24,15 +24,21 @@
package sun.jvm.hotspot.oops; package sun.jvm.hotspot.oops;
import java.io.*; import java.io.PrintStream;
import java.util.*; import java.util.Observable;
import sun.jvm.hotspot.code.*; import java.util.Observer;
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.interpreter.*; import sun.jvm.hotspot.code.NMethod;
import sun.jvm.hotspot.memory.*; import sun.jvm.hotspot.debugger.Address;
import sun.jvm.hotspot.runtime.*; import sun.jvm.hotspot.interpreter.OopMapCacheEntry;
import sun.jvm.hotspot.types.*; import sun.jvm.hotspot.runtime.SignatureConverter;
import sun.jvm.hotspot.utilities.*; import sun.jvm.hotspot.runtime.VM;
import sun.jvm.hotspot.runtime.VMObjectFactory;
import sun.jvm.hotspot.types.AddressField;
import sun.jvm.hotspot.types.Type;
import sun.jvm.hotspot.types.TypeDataBase;
import sun.jvm.hotspot.types.WrongTypeException;
import sun.jvm.hotspot.utilities.Assert;
// A Method represents a Java method // A Method represents a Java method
...@@ -132,11 +138,13 @@ public class Method extends Metadata { ...@@ -132,11 +138,13 @@ public class Method extends Metadata {
public long getAccessFlags() { return accessFlags.getValue(this); } public long getAccessFlags() { return accessFlags.getValue(this); }
public long getCodeSize() { return getConstMethod().getCodeSize(); } public long getCodeSize() { return getConstMethod().getCodeSize(); }
public long getVtableIndex() { return vtableIndex.getValue(this); } public long getVtableIndex() { return vtableIndex.getValue(this); }
public long getInvocationCounter() { public long getInvocationCount() {
return getMethodCounters().getInvocationCounter(); MethodCounters mc = getMethodCounters();
return mc == null ? 0 : mc.getInvocationCounter();
} }
public long getBackedgeCounter() { public long getBackedgeCount() {
return getMethodCounters().getBackedgeCounter(); MethodCounters mc = getMethodCounters();
return mc == null ? 0 : mc.getBackedgeCounter();
} }
// get associated compiled native method, if available, else return null. // get associated compiled native method, if available, else return null.
...@@ -349,8 +357,8 @@ public class Method extends Metadata { ...@@ -349,8 +357,8 @@ public class Method extends Metadata {
holder.getName().asString() + " " + holder.getName().asString() + " " +
OopUtilities.escapeString(getName().asString()) + " " + OopUtilities.escapeString(getName().asString()) + " " +
getSignature().asString() + " " + getSignature().asString() + " " +
getInvocationCounter() + " " + getInvocationCount() + " " +
getBackedgeCounter() + " " + getBackedgeCount() + " " +
interpreterInvocationCount() + " " + interpreterInvocationCount() + " " +
interpreterThrowoutCount() + " " + interpreterThrowoutCount() + " " +
code_size); code_size);
......
...@@ -316,8 +316,8 @@ public class MethodData extends Metadata { ...@@ -316,8 +316,8 @@ public class MethodData extends Metadata {
int iic = method.interpreterInvocationCount(); int iic = method.interpreterInvocationCount();
if (mileage < iic) mileage = iic; if (mileage < iic) mileage = iic;
long ic = method.getInvocationCounter(); long ic = method.getInvocationCount();
long bc = method.getBackedgeCounter(); long bc = method.getBackedgeCount();
long icval = ic >> 3; long icval = ic >> 3;
if ((ic & 4) != 0) icval += CompileThreshold; if ((ic & 4) != 0) icval += CompileThreshold;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册