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