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 } |