--- a/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java Sun Dec 11 12:05:57 2016 -0800
+++ b/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java Sun Dec 11 19:07:04 2016 -0800
@@ -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) {