Mercurial > hg > graal-jvmci-8
comparison src/share/vm/prims/jvmtiClassFileReconstituter.cpp @ 6975:64812523d72e
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
author | sspitsyn |
---|---|
date | Wed, 31 Oct 2012 16:20:03 -0700 |
parents | 1cb8583c3da8 |
children | 8aaef2cee3b2 |
comparison
equal
deleted
inserted
replaced
6920:845129b692f6 | 6975:64812523d72e |
---|---|
226 2 + // attributes_count | 226 2 + // attributes_count |
227 attr_size; // attributes | 227 attr_size; // attributes |
228 | 228 |
229 write_attribute_name_index("Code"); | 229 write_attribute_name_index("Code"); |
230 write_u4(size); | 230 write_u4(size); |
231 write_u2(method->max_stack()); | 231 write_u2(method->verifier_max_stack()); |
232 write_u2(method->max_locals()); | 232 write_u2(method->max_locals()); |
233 write_u4(code_size); | 233 write_u4(code_size); |
234 copy_bytecodes(method, (unsigned char*)writeable_address(code_size)); | 234 copy_bytecodes(method, (unsigned char*)writeable_address(code_size)); |
235 write_u2(exception_table_length); | 235 write_u2(exception_table_length); |
236 for (int index = 0; index < exception_table_length; index++) { | 236 for (int index = 0; index < exception_table_length; index++) { |