< prev index next >

test/lib/sun/hotspot/WhiteBox.java

Print this page
rev 57463 : imported patch 8235934-derivedpointertableupdate
rev 57464 : [mq]: 8235934-kbarrett-review
   1 /*
   2  * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


 210    */
 211   public native long[] g1GetMixedGCInfo(int liveness);
 212 
 213   // NMT
 214   public native long NMTMalloc(long size);
 215   public native void NMTFree(long mem);
 216   public native long NMTReserveMemory(long size);
 217   public native long NMTAttemptReserveMemoryAt(long addr, long size);
 218   public native void NMTCommitMemory(long addr, long size);
 219   public native void NMTUncommitMemory(long addr, long size);
 220   public native void NMTReleaseMemory(long addr, long size);
 221   public native long NMTMallocWithPseudoStack(long size, int index);
 222   public native long NMTMallocWithPseudoStackAndType(long size, int index, int type);
 223   public native boolean NMTChangeTrackingLevel();
 224   public native int NMTGetHashSize();
 225   public native long NMTNewArena(long initSize);
 226   public native void NMTFreeArena(long arena);
 227   public native void NMTArenaMalloc(long arena, long size);
 228 
 229   // Compiler


 230   public native int     matchesMethod(Executable method, String pattern);
 231   public native int     matchesInline(Executable method, String pattern);
 232   public native boolean shouldPrintAssembly(Executable method, int comp_level);
 233   public native int     deoptimizeFrames(boolean makeNotEntrant);
 234   public native void    deoptimizeAll();
 235 
 236   public        boolean isMethodCompiled(Executable method) {
 237     return isMethodCompiled(method, false /*not osr*/);
 238   }
 239   private native boolean isMethodCompiled0(Executable method, boolean isOsr);
 240   public         boolean isMethodCompiled(Executable method, boolean isOsr){
 241     Objects.requireNonNull(method);
 242     return isMethodCompiled0(method, isOsr);
 243   }
 244   public        boolean isMethodCompilable(Executable method) {
 245     return isMethodCompilable(method, -2 /*any*/);
 246   }
 247   public        boolean isMethodCompilable(Executable method, int compLevel) {
 248     return isMethodCompilable(method, compLevel, false /*not osr*/);
 249   }


   1 /*
   2  * Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


 210    */
 211   public native long[] g1GetMixedGCInfo(int liveness);
 212 
 213   // NMT
 214   public native long NMTMalloc(long size);
 215   public native void NMTFree(long mem);
 216   public native long NMTReserveMemory(long size);
 217   public native long NMTAttemptReserveMemoryAt(long addr, long size);
 218   public native void NMTCommitMemory(long addr, long size);
 219   public native void NMTUncommitMemory(long addr, long size);
 220   public native void NMTReleaseMemory(long addr, long size);
 221   public native long NMTMallocWithPseudoStack(long size, int index);
 222   public native long NMTMallocWithPseudoStackAndType(long size, int index, int type);
 223   public native boolean NMTChangeTrackingLevel();
 224   public native int NMTGetHashSize();
 225   public native long NMTNewArena(long initSize);
 226   public native void NMTFreeArena(long arena);
 227   public native void NMTArenaMalloc(long arena, long size);
 228 
 229   // Compiler
 230   public native boolean isC2OrJVMCIIncludedInVmBuild();
 231 
 232   public native int     matchesMethod(Executable method, String pattern);
 233   public native int     matchesInline(Executable method, String pattern);
 234   public native boolean shouldPrintAssembly(Executable method, int comp_level);
 235   public native int     deoptimizeFrames(boolean makeNotEntrant);
 236   public native void    deoptimizeAll();
 237 
 238   public        boolean isMethodCompiled(Executable method) {
 239     return isMethodCompiled(method, false /*not osr*/);
 240   }
 241   private native boolean isMethodCompiled0(Executable method, boolean isOsr);
 242   public         boolean isMethodCompiled(Executable method, boolean isOsr){
 243     Objects.requireNonNull(method);
 244     return isMethodCompiled0(method, isOsr);
 245   }
 246   public        boolean isMethodCompilable(Executable method) {
 247     return isMethodCompilable(method, -2 /*any*/);
 248   }
 249   public        boolean isMethodCompilable(Executable method, int compLevel) {
 250     return isMethodCompilable(method, compLevel, false /*not osr*/);
 251   }


< prev index next >