From 7fc9b3626579499e4c9d7366a1ecf2b7c570efa5 Mon Sep 17 00:00:00 2001 From: thartmann Date: Fri, 9 Oct 2015 11:28:11 +0200 Subject: [PATCH] 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 --- src/share/vm/classfile/stackMapTable.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/share/vm/classfile/stackMapTable.cpp b/src/share/vm/classfile/stackMapTable.cpp index f74adbe31..1c92b61e5 100644 --- a/src/share/vm/classfile/stackMapTable.cpp +++ b/src/share/vm/classfile/stackMapTable.cpp @@ -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(); -- GitLab