--- 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