Mercurial > hg > graal-jvmci-8
comparison src/share/vm/classfile/defaultMethods.cpp @ 10377:fe00365c8f31
8015436: compiler/ciReplay/TestSA.sh fails with assert() index is out of bounds
Summary: The InstanceKlass _initial_method_idnum value must be adjusted if overpass methods are added.
Reviewed-by: twisti, kvn
Contributed-by: serguei.spitsyn@oracle.com
author | sspitsyn |
---|---|
date | Thu, 30 May 2013 11:46:39 -0700 |
parents | 653d0346aa80 |
children | 50257d6f5aaa |
comparison
equal
deleted
inserted
replaced
10376:a1ebd310d5c1 | 10377:fe00365c8f31 |
---|---|
1347 } | 1347 } |
1348 #endif | 1348 #endif |
1349 | 1349 |
1350 // Replace klass methods with new merged lists | 1350 // Replace klass methods with new merged lists |
1351 klass->set_methods(merged_methods); | 1351 klass->set_methods(merged_methods); |
1352 klass->set_initial_method_idnum(new_size); | |
1352 | 1353 |
1353 ClassLoaderData* cld = klass->class_loader_data(); | 1354 ClassLoaderData* cld = klass->class_loader_data(); |
1354 MetadataFactory::free_array(cld, original_methods); | 1355 MetadataFactory::free_array(cld, original_methods); |
1355 if (original_ordering->length() > 0) { | 1356 if (original_ordering->length() > 0) { |
1356 klass->set_method_ordering(merged_ordering); | 1357 klass->set_method_ordering(merged_ordering); |