--- a/hotspot/src/share/vm/oops/instanceKlass.cpp Thu Apr 04 21:15:43 2013 -0700
+++ b/hotspot/src/share/vm/oops/instanceKlass.cpp Fri Apr 05 10:38:08 2013 -0700
@@ -3157,7 +3157,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++) {