mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8015436: compiler/ciReplay/TestSA.sh fails with assert() index is out of bounds
The InstanceKlass _initial_method_idnum value must be adjusted if overpass methods are added. Reviewed-by: twisti, kvn
This commit is contained in:
parent
9dc36eb923
commit
a246da16d1
2 changed files with 75 additions and 0 deletions
|
@ -1349,6 +1349,7 @@ static void merge_in_new_methods(InstanceKlass* klass,
|
|||
|
||||
// Replace klass methods with new merged lists
|
||||
klass->set_methods(merged_methods);
|
||||
klass->set_initial_method_idnum(new_size);
|
||||
|
||||
ClassLoaderData* cld = klass->class_loader_data();
|
||||
MetadataFactory::free_array(cld, original_methods);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue