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

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

Print this page




 210     this::getBooleanVMFlag, this::getIntxVMFlag, this::getUintxVMFlag,
 211     this::getUint64VMFlag, this::getSizeTVMFlag, this::getStringVMFlag,
 212     this::getDoubleVMFlag);
 213 
 214   public Object getVMFlag(String name) {
 215     return flagsGetters.stream()
 216                        .map(f -> f.apply(name))
 217                        .filter(x -> x != null)
 218                        .findAny()
 219                        .orElse(null);
 220   }
 221   public native int getOffsetForName0(String name);
 222   public int getOffsetForName(String name) throws Exception {
 223     int offset = getOffsetForName0(name);
 224     if (offset == -1) {
 225       throw new RuntimeException(name + " not found");
 226     }
 227     return offset;
 228   }
 229 


 230 }


 210     this::getBooleanVMFlag, this::getIntxVMFlag, this::getUintxVMFlag,
 211     this::getUint64VMFlag, this::getSizeTVMFlag, this::getStringVMFlag,
 212     this::getDoubleVMFlag);
 213 
 214   public Object getVMFlag(String name) {
 215     return flagsGetters.stream()
 216                        .map(f -> f.apply(name))
 217                        .filter(x -> x != null)
 218                        .findAny()
 219                        .orElse(null);
 220   }
 221   public native int getOffsetForName0(String name);
 222   public int getOffsetForName(String name) throws Exception {
 223     int offset = getOffsetForName0(name);
 224     if (offset == -1) {
 225       throw new RuntimeException(name + " not found");
 226     }
 227     return offset;
 228   }
 229 
 230   // Safepoint Checking
 231   public native void assertMatchingSafepointCalls(boolean mutexSafepointValue, boolean attemptedNoSafepointValue);
 232 }
test/testlibrary/whitebox/sun/hotspot/WhiteBox.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File