--- old/src/hotspot/share/oops/method.cpp 2019-10-01 15:26:58.451759131 -0700 +++ new/src/hotspot/share/oops/method.cpp 2019-10-01 15:26:57.921739382 -0700 @@ -979,7 +979,7 @@ void Method::unlink_method() { _code = NULL; - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump time only"); + assert(Arguments::is_dumping_archive(), "dump time only"); // 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);