提交 7fc9b362 编写于 作者: T thartmann

8139150: ClassVerifier frees exception message while it's still in use

Summary: Remove ResourceMark in StackMapReader::parse_verification_type() to avoid freeing of error message.
Reviewed-by: zmajo, dcubed, hseigel
上级 5eedbf58
......@@ -186,7 +186,6 @@ VerificationType StackMapReader::parse_verification_type(u1* flags, TRAPS) {
u2 offset = _stream->get_u2(THREAD);
if (offset >= _code_length ||
_code_data[offset] != ClassVerifier::NEW_OFFSET) {
ResourceMark rm(THREAD);
_verifier->class_format_error(
"StackMapTable format error: bad offset for Uninitialized");
return VerificationType::bogus_type();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册