test/testlibrary/whitebox/sun/hotspot/WhiteBox.java

changeset 4951
4b2eebe03f93
parent 4913
7a5aec879506
child 4955
01d5f04e64dc
     1.1 --- a/test/testlibrary/whitebox/sun/hotspot/WhiteBox.java	Tue Apr 16 10:37:16 2013 -0400
     1.2 +++ b/test/testlibrary/whitebox/sun/hotspot/WhiteBox.java	Tue Apr 16 10:04:01 2013 -0700
     1.3 @@ -24,7 +24,7 @@
     1.4  
     1.5  package sun.hotspot;
     1.6  
     1.7 -import java.lang.reflect.Method;
     1.8 +import java.lang.reflect.Executable;
     1.9  import java.security.BasicPermission;
    1.10  import sun.hotspot.parser.DiagnosticCommand;
    1.11  
    1.12 @@ -90,22 +90,25 @@
    1.13  
    1.14    // Compiler
    1.15    public native void    deoptimizeAll();
    1.16 -  public native boolean isMethodCompiled(Method method);
    1.17 -  public boolean isMethodCompilable(Method method) {
    1.18 +  public native boolean isMethodCompiled(Executable method);
    1.19 +  public boolean isMethodCompilable(Executable method) {
    1.20        return isMethodCompilable(method, -1 /*any*/);
    1.21    }
    1.22 -  public native boolean isMethodCompilable(Method method, int compLevel);
    1.23 -  public native boolean isMethodQueuedForCompilation(Method method);
    1.24 -  public native int     deoptimizeMethod(Method method);
    1.25 -  public native void    makeMethodNotCompilable(Method method);
    1.26 -  public native int     getMethodCompilationLevel(Method method);
    1.27 -  public native boolean testSetDontInlineMethod(Method method, boolean value);
    1.28 +  public native boolean isMethodCompilable(Executable method, int compLevel);
    1.29 +  public native boolean isMethodQueuedForCompilation(Executable method);
    1.30 +  public native int     deoptimizeMethod(Executable method);
    1.31 +  public void makeMethodNotCompilable(Executable method) {
    1.32 +      makeMethodNotCompilable(method, -1 /*any*/);
    1.33 +  }
    1.34 +  public native void    makeMethodNotCompilable(Executable method, int compLevel);
    1.35 +  public native int     getMethodCompilationLevel(Executable method);
    1.36 +  public native boolean testSetDontInlineMethod(Executable method, boolean value);
    1.37    public native int     getCompileQueuesSize();
    1.38 -  public native boolean testSetForceInlineMethod(Method method, boolean value);
    1.39 -  public native boolean enqueueMethodForCompilation(Method method, int compLevel);
    1.40 -  public native void    clearMethodState(Method method);
    1.41 +  public native boolean testSetForceInlineMethod(Executable method, boolean value);
    1.42 +  public native boolean enqueueMethodForCompilation(Executable method, int compLevel);
    1.43 +  public native void    clearMethodState(Executable method);
    1.44  
    1.45 -  //Intered strings
    1.46 +  // Intered strings
    1.47    public native boolean isInStringTable(String str);
    1.48  
    1.49    // force Full GC

mercurial