diff -r 5c83830390ba -r 319173c62caa src/hotspot/share/oops/method.cpp --- a/src/hotspot/share/oops/method.cpp Wed Oct 02 13:57:03 2019 -0400 +++ b/src/hotspot/share/oops/method.cpp Wed Oct 02 16:55:08 2019 -0700 @@ -979,7 +979,7 @@ void Method::unlink_method() { _code = NULL; - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump time only"); + Arguments::assert_is_dumping_archive(); // Set the values to what they should be at run time. Note that // this Method can no longer be executed during dump time. _i2i_entry = Interpreter::entry_for_cds_method(this);