8233363: Clarify the DumpSharedSpaces condition in InstanceKlass::verify_on
authorccheung
Fri, 01 Nov 2019 11:31:37 -0700
changeset 58895 42aa251d6eed
parent 58894 b95bead30957
child 58896 bd9daab73a8e
8233363: Clarify the DumpSharedSpaces condition in InstanceKlass::verify_on Summary: change DumpSharedSpaces to Arguments::is_dumping_archive(). Reviewed-by: iklam, coleenp
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<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++) {