8010943: guarantee(length == 0) failed: invalid method ordering length
Add DumpSharedSpaces to IF condition to handle verify during -Xshare:dump. Reviewed-by: coleenp, zgu
This commit is contained in:
parent
c435269587
commit
e1383d4931
@ -3168,7 +3168,7 @@ void InstanceKlass::verify_on(outputStream* st) {
|
|||||||
Array<int>* method_ordering = this->method_ordering();
|
Array<int>* method_ordering = this->method_ordering();
|
||||||
int length = method_ordering->length();
|
int length = method_ordering->length();
|
||||||
if (JvmtiExport::can_maintain_original_method_order() ||
|
if (JvmtiExport::can_maintain_original_method_order() ||
|
||||||
(UseSharedSpaces && length != 0)) {
|
((UseSharedSpaces || DumpSharedSpaces) && length != 0)) {
|
||||||
guarantee(length == methods()->length(), "invalid method ordering length");
|
guarantee(length == methods()->length(), "invalid method ordering length");
|
||||||
jlong sum = 0;
|
jlong sum = 0;
|
||||||
for (int j = 0; j < length; j++) {
|
for (int j = 0; j < length; j++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user