Mercurial > hg > truffle
comparison src/share/vm/oops/instanceKlass.cpp @ 9057: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 | c8b31b461e1a |
children | 8be1318fbe77 |
comparison
equal
deleted
inserted
replaced
9056:3b890cd4da64 | 9057:8554c55669b0 |
---|---|
3166 // Verify method ordering | 3166 // Verify method ordering |
3167 if (method_ordering() != NULL) { | 3167 if (method_ordering() != NULL) { |
3168 Array<int>* method_ordering = this->method_ordering(); | 3168 Array<int>* method_ordering = this->method_ordering(); |
3169 int length = method_ordering->length(); | 3169 int length = method_ordering->length(); |
3170 if (JvmtiExport::can_maintain_original_method_order() || | 3170 if (JvmtiExport::can_maintain_original_method_order() || |
3171 (UseSharedSpaces && length != 0)) { | 3171 ((UseSharedSpaces || DumpSharedSpaces) && length != 0)) { |
3172 guarantee(length == methods()->length(), "invalid method ordering length"); | 3172 guarantee(length == methods()->length(), "invalid method ordering length"); |
3173 jlong sum = 0; | 3173 jlong sum = 0; |
3174 for (int j = 0; j < length; j++) { | 3174 for (int j = 0; j < length; j++) { |
3175 int original_index = method_ordering->at(j); | 3175 int original_index = method_ordering->at(j); |
3176 guarantee(original_index >= 0, "invalid method ordering index"); | 3176 guarantee(original_index >= 0, "invalid method ordering index"); |