mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8217318: Unneeded handleization in InstanceKlass::restore_unshareable_info
No need for a methodHandle here since methods not yet added to SystemDictionary can't be redefined. Reviewed-by: coleenp
This commit is contained in:
parent
602ead5483
commit
62378f6977
1 changed files with 2 additions and 3 deletions
|
@ -2374,9 +2374,8 @@ void InstanceKlass::restore_unshareable_info(ClassLoaderData* loader_data, Handl
|
|||
|
||||
Array<Method*>* methods = this->methods();
|
||||
int num_methods = methods->length();
|
||||
for (int index2 = 0; index2 < num_methods; ++index2) {
|
||||
methodHandle m(THREAD, methods->at(index2));
|
||||
m->restore_unshareable_info(CHECK);
|
||||
for (int index = 0; index < num_methods; ++index) {
|
||||
methods->at(index)->restore_unshareable_info(CHECK);
|
||||
}
|
||||
if (JvmtiExport::has_redefined_a_class()) {
|
||||
// Reinitialize vtable because RedefineClasses may have changed some
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue