diff 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
line wrap: on
line diff
--- a/src/share/vm/classfile/defaultMethods.cpp	Tue May 28 16:36:19 2013 -0700
+++ b/src/share/vm/classfile/defaultMethods.cpp	Thu May 30 11:46:39 2013 -0700
@@ -1349,6 +1349,7 @@
 
   // 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);