src/hotspot/share/runtime/arguments.hpp
changeset 58447 319173c62caa
parent 58280 ef8c8cf9256a
child 58679 9c3209ff7550
child 58842 6c255334120d
--- a/src/hotspot/share/runtime/arguments.hpp	Wed Oct 02 13:57:03 2019 -0400
+++ b/src/hotspot/share/runtime/arguments.hpp	Wed Oct 02 16:55:08 2019 -0700
@@ -647,6 +647,12 @@
   static bool atojulong(const char *s, julong* result);
 
   static bool has_jfr_option() NOT_JFR_RETURN_(false);
+
+  static bool is_dumping_archive() { return DumpSharedSpaces || DynamicDumpSharedSpaces; }
+
+  static void assert_is_dumping_archive() {
+    assert(Arguments::is_dumping_archive(), "dump time only");
+  }
 };
 
 // Disable options not supported in this release, with a warning if they