mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8046246: the constantPoolCacheOopDesc::adjust_method_entries() used in RedefineClasses does not scale
Optimize the adjust_method_entries functions by using the orig_method_idnum() function Reviewed-by: coleenp, dcubed
This commit is contained in:
parent
07a6ab00bc
commit
942d1f7f32
11 changed files with 154 additions and 132 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1091,6 +1091,7 @@ static void merge_in_new_methods(InstanceKlass* klass,
|
|||
}
|
||||
// update idnum for new location
|
||||
merged_methods->at(i)->set_method_idnum(i);
|
||||
merged_methods->at(i)->set_orig_method_idnum(i);
|
||||
}
|
||||
|
||||
// Verify correct order
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue