src/hotspot/share/oops/constMethod.hpp
changeset 58447 319173c62caa
parent 54927 1512d88b24c6
child 58861 2c3cc4b01880
--- a/src/hotspot/share/oops/constMethod.hpp	Wed Oct 02 13:57:03 2019 -0400
+++ b/src/hotspot/share/oops/constMethod.hpp	Wed Oct 02 16:55:08 2019 -0700
@@ -26,6 +26,7 @@
 #define SHARE_OOPS_CONSTMETHOD_HPP
 
 #include "oops/oop.hpp"
+#include "runtime/arguments.hpp"
 #include "utilities/align.hpp"
 
 // An ConstMethod represents portions of a Java method which are not written to after
@@ -293,7 +294,7 @@
     _adapter = adapter;
   }
   void set_adapter_trampoline(AdapterHandlerEntry** trampoline) {
-    assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "must be");
+    Arguments::assert_is_dumping_archive();
     if (DumpSharedSpaces) {
       assert(*trampoline == NULL,
              "must be NULL during dump time, to be initialized at run time");