1.1 --- a/src/share/vm/oops/instanceKlass.cpp Thu Apr 04 21:15:43 2013 -0700 1.2 +++ b/src/share/vm/oops/instanceKlass.cpp Fri Apr 05 10:38:08 2013 -0700 1.3 @@ -3157,7 +3157,7 @@ 1.4 Array<int>* method_ordering = this->method_ordering(); 1.5 int length = method_ordering->length(); 1.6 if (JvmtiExport::can_maintain_original_method_order() || 1.7 - (UseSharedSpaces && length != 0)) { 1.8 + ((UseSharedSpaces || DumpSharedSpaces) && length != 0)) { 1.9 guarantee(length == methods()->length(), "invalid method ordering length"); 1.10 jlong sum = 0; 1.11 for (int j = 0; j < length; j++) {