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:
Serguei Spitsyn 2013-05-30 11:46:39 -07:00 committed by Serguei Spitsyn
parent 9dc36eb923
commit a246da16d1
2 changed files with 75 additions and 0 deletions

View file

@ -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);