--- old/src/hotspot/share/oops/constMethod.hpp 2019-10-01 15:26:53.822586645 -0700 +++ new/src/hotspot/share/oops/constMethod.hpp 2019-10-01 15:26:53.287566709 -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"); + assert(Arguments::is_dumping_archive(), "must be"); if (DumpSharedSpaces) { assert(*trampoline == NULL, "must be NULL during dump time, to be initialized at run time");