hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 16672 152c041083e1
parent 16611 6807a703dd6b
parent 16667 f0c0139a2125
child 17029 9ff8d7c0ed79
equal deleted inserted replaced
16665:482e60f4f893 16672:152c041083e1
  3155   // Verify method ordering
  3155   // Verify method ordering
  3156   if (method_ordering() != NULL) {
  3156   if (method_ordering() != NULL) {
  3157     Array<int>* method_ordering = this->method_ordering();
  3157     Array<int>* method_ordering = this->method_ordering();
  3158     int length = method_ordering->length();
  3158     int length = method_ordering->length();
  3159     if (JvmtiExport::can_maintain_original_method_order() ||
  3159     if (JvmtiExport::can_maintain_original_method_order() ||
  3160         (UseSharedSpaces && length != 0)) {
  3160         ((UseSharedSpaces || DumpSharedSpaces) && length != 0)) {
  3161       guarantee(length == methods()->length(), "invalid method ordering length");
  3161       guarantee(length == methods()->length(), "invalid method ordering length");
  3162       jlong sum = 0;
  3162       jlong sum = 0;
  3163       for (int j = 0; j < length; j++) {
  3163       for (int j = 0; j < length; j++) {
  3164         int original_index = method_ordering->at(j);
  3164         int original_index = method_ordering->at(j);
  3165         guarantee(original_index >= 0, "invalid method ordering index");
  3165         guarantee(original_index >= 0, "invalid method ordering index");