test/testlibrary/whitebox/sun/hotspot/WhiteBox.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff test/testlibrary/whitebox/sun/hotspot

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

Print this page
rev 7390 : 8028595: WhiteBox API for stress testing of TieredCompilation
Reviewed-by:


  87   // G1
  88   public native boolean g1InConcurrentMark();
  89   public native boolean g1IsHumongous(Object o);
  90   public native long    g1NumFreeRegions();
  91   public native int     g1RegionSize();
  92   public native Object[]    parseCommandLine(String commandline, DiagnosticCommand[] args);
  93 
  94   // NMT
  95   public native long NMTMalloc(long size);
  96   public native void NMTFree(long mem);
  97   public native long NMTReserveMemory(long size);
  98   public native void NMTCommitMemory(long addr, long size);
  99   public native void NMTUncommitMemory(long addr, long size);
 100   public native void NMTReleaseMemory(long addr, long size);
 101   public native long NMTMallocWithPseudoStack(long size, int index);
 102   public native boolean NMTIsDetailSupported();
 103   public native boolean NMTChangeTrackingLevel();
 104   public native int NMTGetHashSize();
 105 
 106   // Compiler

 107   public native void    deoptimizeAll();
 108   public        boolean isMethodCompiled(Executable method) {
 109     return isMethodCompiled(method, false /*not osr*/);
 110   }
 111   public native boolean isMethodCompiled(Executable method, boolean isOsr);
 112   public        boolean isMethodCompilable(Executable method) {
 113     return isMethodCompilable(method, -1 /*any*/);
 114   }
 115   public        boolean isMethodCompilable(Executable method, int compLevel) {
 116     return isMethodCompilable(method, compLevel, false /*not osr*/);
 117   }
 118   public native boolean isMethodCompilable(Executable method, int compLevel, boolean isOsr);
 119   public native boolean isMethodQueuedForCompilation(Executable method);
 120   public        int     deoptimizeMethod(Executable method) {
 121     return deoptimizeMethod(method, false /*not osr*/);
 122   }
 123   public native int     deoptimizeMethod(Executable method, boolean isOsr);
 124   public        void    makeMethodNotCompilable(Executable method) {
 125     makeMethodNotCompilable(method, -1 /*any*/);
 126   }




  87   // G1
  88   public native boolean g1InConcurrentMark();
  89   public native boolean g1IsHumongous(Object o);
  90   public native long    g1NumFreeRegions();
  91   public native int     g1RegionSize();
  92   public native Object[]    parseCommandLine(String commandline, DiagnosticCommand[] args);
  93 
  94   // NMT
  95   public native long NMTMalloc(long size);
  96   public native void NMTFree(long mem);
  97   public native long NMTReserveMemory(long size);
  98   public native void NMTCommitMemory(long addr, long size);
  99   public native void NMTUncommitMemory(long addr, long size);
 100   public native void NMTReleaseMemory(long addr, long size);
 101   public native long NMTMallocWithPseudoStack(long size, int index);
 102   public native boolean NMTIsDetailSupported();
 103   public native boolean NMTChangeTrackingLevel();
 104   public native int NMTGetHashSize();
 105 
 106   // Compiler
 107   public native int     deoptimizeFrames(boolean makeNotEntrant);
 108   public native void    deoptimizeAll();
 109   public        boolean isMethodCompiled(Executable method) {
 110     return isMethodCompiled(method, false /*not osr*/);
 111   }
 112   public native boolean isMethodCompiled(Executable method, boolean isOsr);
 113   public        boolean isMethodCompilable(Executable method) {
 114     return isMethodCompilable(method, -1 /*any*/);
 115   }
 116   public        boolean isMethodCompilable(Executable method, int compLevel) {
 117     return isMethodCompilable(method, compLevel, false /*not osr*/);
 118   }
 119   public native boolean isMethodCompilable(Executable method, int compLevel, boolean isOsr);
 120   public native boolean isMethodQueuedForCompilation(Executable method);
 121   public        int     deoptimizeMethod(Executable method) {
 122     return deoptimizeMethod(method, false /*not osr*/);
 123   }
 124   public native int     deoptimizeMethod(Executable method, boolean isOsr);
 125   public        void    makeMethodNotCompilable(Executable method) {
 126     makeMethodNotCompilable(method, -1 /*any*/);
 127   }


test/testlibrary/whitebox/sun/hotspot/WhiteBox.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File