changeset 4451:8554c55669b0

8010943: guarantee(length == 0) failed: invalid method ordering length Summary: Add DumpSharedSpaces to IF condition to handle verify during -Xshare:dump. Reviewed-by: coleenp, zgu
author hseigel
date Thu, 04 Apr 2013 08:47:39 -0400
parents 3b890cd4da64
children bad3bed4b323
files src/share/vm/oops/instanceKlass.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/instanceKlass.cpp	Wed Apr 03 21:41:33 2013 +0200
+++ b/src/share/vm/oops/instanceKlass.cpp	Thu Apr 04 08:47:39 2013 -0400
@@ -3168,7 +3168,7 @@
     Array<int>* method_ordering = this->method_ordering();
     int length = method_ordering->length();
     if (JvmtiExport::can_maintain_original_method_order() ||
-        (UseSharedSpaces && length != 0)) {
+        ((UseSharedSpaces || DumpSharedSpaces) && length != 0)) {
       guarantee(length == methods()->length(), "invalid method ordering length");
       jlong sum = 0;
       for (int j = 0; j < length; j++) {