hotspot/src/share/vm/prims/jvmtiClassFileReconstituter.cpp
changeset 38031 e0b822facc03
parent 33593 60764a78fa5c
child 46329 53ccc37bda19
equal deleted inserted replaced
38030:93f24e7b3c43 38031:e0b822facc03
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   691 
   691 
   692   write_u2(num_methods - num_overpass);
   692   write_u2(num_methods - num_overpass);
   693   if (JvmtiExport::can_maintain_original_method_order()) {
   693   if (JvmtiExport::can_maintain_original_method_order()) {
   694     int index;
   694     int index;
   695     int original_index;
   695     int original_index;
   696     intArray method_order(num_methods, 0);
   696     intArray method_order(num_methods, num_methods, 0);
   697 
   697 
   698     // invert the method order mapping
   698     // invert the method order mapping
   699     for (index = 0; index < num_methods; index++) {
   699     for (index = 0; index < num_methods; index++) {
   700       original_index = ikh()->method_ordering()->at(index);
   700       original_index = ikh()->method_ordering()->at(index);
   701       assert(original_index >= 0 && original_index < num_methods,
   701       assert(original_index >= 0 && original_index < num_methods,