8233363: Clarify the DumpSharedSpaces condition in InstanceKlass::verify_on
Summary: change DumpSharedSpaces to Arguments::is_dumping_archive().
Reviewed-by: iklam, coleenp
--- 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<int>* 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++) {