hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 38033 996ce936543f
parent 37242 91e5f98fff6f
parent 38031 e0b822facc03
child 38060 954c9575f653
equal deleted inserted replaced
37298:8df0cc9da41e 38033:996ce936543f
  2925 
  2925 
  2926   intArray* method_ordering = NULL;
  2926   intArray* method_ordering = NULL;
  2927   // If JVMTI original method ordering or sharing is enabled construct int
  2927   // If JVMTI original method ordering or sharing is enabled construct int
  2928   // array remembering the original ordering
  2928   // array remembering the original ordering
  2929   if (JvmtiExport::can_maintain_original_method_order() || DumpSharedSpaces) {
  2929   if (JvmtiExport::can_maintain_original_method_order() || DumpSharedSpaces) {
  2930     method_ordering = new intArray(length);
  2930     method_ordering = new intArray(length, length, -1);
  2931     for (int index = 0; index < length; index++) {
  2931     for (int index = 0; index < length; index++) {
  2932       Method* const m = methods->at(index);
  2932       Method* const m = methods->at(index);
  2933       const int old_index = m->vtable_index();
  2933       const int old_index = m->vtable_index();
  2934       assert(old_index >= 0 && old_index < length, "invalid method index");
  2934       assert(old_index >= 0 && old_index < length, "invalid method index");
  2935       method_ordering->at_put(index, old_index);
  2935       method_ordering->at_put(index, old_index);