# HG changeset patch # User ccheung # Date 1572633097 25200 # Node ID 42aa251d6eed7f57a0281813a602e307f73b5cd3 # Parent b95bead3095732511970be602c0629686e4b49f1 8233363: Clarify the DumpSharedSpaces condition in InstanceKlass::verify_on Summary: change DumpSharedSpaces to Arguments::is_dumping_archive(). Reviewed-by: iklam, coleenp diff -r b95bead30957 -r 42aa251d6eed src/hotspot/share/oops/instanceKlass.cpp --- a/src/hotspot/share/oops/instanceKlass.cpp Fri Nov 01 09:39:13 2019 -0700 +++ b/src/hotspot/share/oops/instanceKlass.cpp Fri Nov 01 11:31:37 2019 -0700 @@ -3626,7 +3626,7 @@ Array* method_ordering = this->method_ordering(); int length = method_ordering->length(); if (JvmtiExport::can_maintain_original_method_order() || - ((UseSharedSpaces || DumpSharedSpaces) && length != 0)) { + ((UseSharedSpaces || Arguments::is_dumping_archive()) && length != 0)) { guarantee(length == methods()->length(), "invalid method ordering length"); jlong sum = 0; for (int j = 0; j < length; j++) {