src/hotspot/share/runtime/arguments.hpp
changeset 53730 1d942423516c
parent 53547 9d1a788dea3d
child 54573 b73893f7fee3
--- a/src/hotspot/share/runtime/arguments.hpp	Tue Feb 12 15:31:40 2019 +0100
+++ b/src/hotspot/share/runtime/arguments.hpp	Tue Feb 05 17:40:15 2019 +0100
@@ -663,4 +663,16 @@
   }                                                      \
 } while(0)
 
+// similar to UNSUPPORTED_OPTION but sets flag to NULL
+#define UNSUPPORTED_OPTION_NULL(opt)                     \
+do {                                                     \
+  if (opt) {                                             \
+    if (FLAG_IS_CMDLINE(opt)) {                          \
+      warning("-XX flag " #opt " not supported in this VM"); \
+    }                                                    \
+    FLAG_SET_DEFAULT(opt, NULL);                         \
+  }                                                      \
+} while(0)
+
+
 #endif // SHARE_RUNTIME_ARGUMENTS_HPP