提交 95ea2e3f 编写于 作者: S sspitsyn

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
上级 2ba82e0c
...@@ -228,7 +228,7 @@ void JvmtiClassFileReconstituter::write_code_attribute(methodHandle method) { ...@@ -228,7 +228,7 @@ void JvmtiClassFileReconstituter::write_code_attribute(methodHandle method) {
write_attribute_name_index("Code"); write_attribute_name_index("Code");
write_u4(size); write_u4(size);
write_u2(method->max_stack()); write_u2(method->verifier_max_stack());
write_u2(method->max_locals()); write_u2(method->max_locals());
write_u4(code_size); write_u4(code_size);
copy_bytecodes(method, (unsigned char*)writeable_address(code_size)); copy_bytecodes(method, (unsigned char*)writeable_address(code_size));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册