changeset 57298:42aa251d6eed

8233363: Clarify the DumpSharedSpaces condition in InstanceKlass::verify_on Summary: change DumpSharedSpaces to Arguments::is_dumping_archive(). Reviewed-by: iklam, coleenp
author ccheung
date Fri, 01 Nov 2019 11:31:37 -0700
parents b95bead30957
children bd9daab73a8e
files src/hotspot/share/oops/instanceKlass.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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++) {