--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java 2016-10-31 17:46:24.000000000 -0700 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java 2016-10-31 17:46:24.000000000 -0700 @@ -861,6 +861,12 @@ return (flag == null) ? false: flag.getBool(); } + public boolean getCommandLineBooleanFlag(String name) { + Flag flag = getCommandLineFlag(name); + return (flag == null) ? Boolean.FALSE: + (flag.getBool()? Boolean.TRUE: Boolean.FALSE); + } + // returns null, if not available. public Flag[] getCommandLineFlags() { if (commandLineFlags == null) {