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

Print this page




  70   public boolean isClassAlive(String name) {
  71     return isClassAlive0(name.replace('.', '/'));
  72   }
  73   private native boolean isClassAlive0(String name);
  74 
  75   // G1
  76   public native boolean g1InConcurrentMark();
  77   public native boolean g1IsHumongous(Object o);
  78   public native long    g1NumFreeRegions();
  79   public native int     g1RegionSize();
  80   public native Object[]    parseCommandLine(String commandline, DiagnosticCommand[] args);
  81 
  82   // NMT
  83   public native boolean NMTAllocTest();
  84   public native boolean NMTFreeTestMemory();
  85   public native boolean NMTWaitForDataMerge();
  86 
  87   // Compiler
  88   public native void    deoptimizeAll();
  89   public native boolean isMethodCompiled(Method method);
  90   public native boolean isMethodCompilable(Method method);



  91   public native boolean isMethodQueuedForCompilation(Method method);
  92   public native int     deoptimizeMethod(Method method);
  93   public native void    makeMethodNotCompilable(Method method);
  94   public native int     getMethodCompilationLevel(Method method);
  95   public native boolean setDontInlineMethod(Method method, boolean value);
  96   public native int     getCompileQueuesSize();



  97 }


  70   public boolean isClassAlive(String name) {
  71     return isClassAlive0(name.replace('.', '/'));
  72   }
  73   private native boolean isClassAlive0(String name);
  74 
  75   // G1
  76   public native boolean g1InConcurrentMark();
  77   public native boolean g1IsHumongous(Object o);
  78   public native long    g1NumFreeRegions();
  79   public native int     g1RegionSize();
  80   public native Object[]    parseCommandLine(String commandline, DiagnosticCommand[] args);
  81 
  82   // NMT
  83   public native boolean NMTAllocTest();
  84   public native boolean NMTFreeTestMemory();
  85   public native boolean NMTWaitForDataMerge();
  86 
  87   // Compiler
  88   public native void    deoptimizeAll();
  89   public native boolean isMethodCompiled(Method method);
  90   public boolean isMethodCompilable(Method method) {
  91       return isMethodCompilable(method, -1 /*any*/);
  92   }
  93   public native boolean isMethodCompilable(Method method, int compLevel);
  94   public native boolean isMethodQueuedForCompilation(Method method);
  95   public native int     deoptimizeMethod(Method method);
  96   public native void    makeMethodNotCompilable(Method method);
  97   public native int     getMethodCompilationLevel(Method method);
  98   public native boolean setDontInlineMethod(Method method, boolean value);
  99   public native int     getCompileQueuesSize();
 100   public native boolean setForceInlineMethod(Method method, boolean value);
 101   public native boolean enqueueMethodForCompilation(Method method, int compLevel);
 102   public native void    clearMethodState(Method method);
 103 }