equal
deleted
inserted
replaced
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); |