src/hotspot/share/runtime/arguments.hpp
changeset 49716 450d709262c1
parent 49364 601146c66cad
child 49739 00805b129186
--- a/src/hotspot/share/runtime/arguments.hpp	Fri Apr 06 13:55:25 2018 +0200
+++ b/src/hotspot/share/runtime/arguments.hpp	Fri Apr 06 09:59:48 2018 -0400
@@ -358,6 +358,9 @@
   static void set_xdebug_mode(bool arg) { _xdebug_mode = arg; }
   static bool xdebug_mode()             { return _xdebug_mode; }
 
+  // preview features
+  static bool _enable_preview;
+
   // Used to save default settings
   static bool _AlwaysCompileLoopMethods;
   static bool _UseOnStackReplacement;
@@ -691,6 +694,9 @@
   static Mode mode()                        { return _mode; }
   static bool is_interpreter_only() { return mode() == _int; }
 
+  // preview features
+  static void set_enable_preview() { _enable_preview = true; }
+  static bool enable_preview() { return _enable_preview; }
 
   // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid.
   static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen);