src/hotspot/share/classfile/defaultMethods.cpp
changeset 53432 1ec56532ae0c
parent 51444 3e5d28e6de32
child 54013 c5cf23055fcb
equal deleted inserted replaced
53431:5abf1da9e9ad 53432:1ec56532ae0c
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2019, 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.
   986   Array<Method*>* total_default_methods = MetadataFactory::new_array<Method*>(
   986   Array<Method*>* total_default_methods = MetadataFactory::new_array<Method*>(
   987       klass->class_loader_data(), new_size, NULL, CHECK);
   987       klass->class_loader_data(), new_size, NULL, CHECK);
   988   for (int index = 0; index < new_size; index++ ) {
   988   for (int index = 0; index < new_size; index++ ) {
   989     total_default_methods->at_put(index, new_methods->at(index));
   989     total_default_methods->at_put(index, new_methods->at(index));
   990   }
   990   }
   991   Method::sort_methods(total_default_methods, false, false);
   991   Method::sort_methods(total_default_methods, /*set_idnums=*/false);
   992 
   992 
   993   klass->set_default_methods(total_default_methods);
   993   klass->set_default_methods(total_default_methods);
   994 }
   994 }
   995 
   995 
   996 static void sort_methods(GrowableArray<Method*>* methods) {
   996 static void sort_methods(GrowableArray<Method*>* methods) {