7194607: VerifyLocalVariableTableOnRetransformTest.sh fails after JSR-292 merge
authorsspitsyn
Wed, 31 Oct 2012 16:20:03 -0700
changeset 14480 06c1743f1285
parent 14288 a171bf7d0c99
child 14481 0918b0419ce8
7194607: VerifyLocalVariableTableOnRetransformTest.sh fails after JSR-292 merge Summary: Use verifier_max_size instead of max_size to get code attribute max stack size. Reviewed-by: dcubed, minqi Contributed-by: serguei.spitsyn@oracle.com
hotspot/src/share/vm/prims/jvmtiClassFileReconstituter.cpp
--- a/hotspot/src/share/vm/prims/jvmtiClassFileReconstituter.cpp	Mon Oct 29 16:39:14 2012 -0700
+++ b/hotspot/src/share/vm/prims/jvmtiClassFileReconstituter.cpp	Wed Oct 31 16:20:03 2012 -0700
@@ -228,7 +228,7 @@
 
   write_attribute_name_index("Code");
   write_u4(size);
-  write_u2(method->max_stack());
+  write_u2(method->verifier_max_stack());
   write_u2(method->max_locals());
   write_u4(code_size);
   copy_bytecodes(method, (unsigned char*)writeable_address(code_size));