367 *
368 * @param map - property-value pairs
369 * @param flagName - flag name
370 */
371 private void vmOptFinalFlag(SafeMap map, String flagName) {
372 map.put("vm.opt.final." + flagName,
373 () -> String.valueOf(WB.getBooleanVMFlag(flagName)));
374 }
375
376 /**
377 * Selected sets of final flags.
378 *
379 * @param map - property-value pairs
380 */
381 protected void vmOptFinalFlags(SafeMap map) {
382 vmOptFinalFlag(map, "ClassUnloading");
383 vmOptFinalFlag(map, "ClassUnloadingWithConcurrentMark");
384 vmOptFinalFlag(map, "CriticalJNINatives");
385 vmOptFinalFlag(map, "EnableJVMCI");
386 vmOptFinalFlag(map, "EliminateAllocations");
387 vmOptFinalFlag(map, "UnlockExperimentalVMOptions");
388 vmOptFinalFlag(map, "UseCompressedOops");
389 vmOptFinalFlag(map, "UseLargePages");
390 vmOptFinalFlag(map, "UseVectorizedMismatchIntrinsic");
391 vmOptFinalFlag(map, "ZGenerational");
392 }
393
394 /**
395 * @return "true" if VM has a serviceability agent.
396 */
397 protected String vmHasSA() {
398 return "" + Platform.hasSA();
399 }
400
401 /**
402 * @return "true" if the VM is compiled with Java Flight Recorder (JFR)
403 * support.
404 */
405 protected String vmHasJFR() {
406 return "" + WB.isJFRIncluded();
|
367 *
368 * @param map - property-value pairs
369 * @param flagName - flag name
370 */
371 private void vmOptFinalFlag(SafeMap map, String flagName) {
372 map.put("vm.opt.final." + flagName,
373 () -> String.valueOf(WB.getBooleanVMFlag(flagName)));
374 }
375
376 /**
377 * Selected sets of final flags.
378 *
379 * @param map - property-value pairs
380 */
381 protected void vmOptFinalFlags(SafeMap map) {
382 vmOptFinalFlag(map, "ClassUnloading");
383 vmOptFinalFlag(map, "ClassUnloadingWithConcurrentMark");
384 vmOptFinalFlag(map, "CriticalJNINatives");
385 vmOptFinalFlag(map, "EnableJVMCI");
386 vmOptFinalFlag(map, "EliminateAllocations");
387 vmOptFinalFlag(map, "TieredCompilation");
388 vmOptFinalFlag(map, "UnlockExperimentalVMOptions");
389 vmOptFinalFlag(map, "UseCompressedOops");
390 vmOptFinalFlag(map, "UseLargePages");
391 vmOptFinalFlag(map, "UseVectorizedMismatchIntrinsic");
392 vmOptFinalFlag(map, "ZGenerational");
393 }
394
395 /**
396 * @return "true" if VM has a serviceability agent.
397 */
398 protected String vmHasSA() {
399 return "" + Platform.hasSA();
400 }
401
402 /**
403 * @return "true" if the VM is compiled with Java Flight Recorder (JFR)
404 * support.
405 */
406 protected String vmHasJFR() {
407 return "" + WB.isJFRIncluded();
|