From 430d7e580c2ec6f6c57813b95db7d62f06603dfd Mon Sep 17 00:00:00 2001 From: dlong Date: Tue, 24 Jan 2012 18:00:54 -0500 Subject: [PATCH] 7130319: C2: running with -XX:+PrintOptoAssembly crashes the VM with assert(false) failed: bad tag in log Summary: Relax assert to allow the VMThread to close the log while the compiler thread is still writing to it. Reviewed-by: dholmes, never Contributed-by: dean.long@oracle.com --- src/share/vm/utilities/xmlstream.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/share/vm/utilities/xmlstream.cpp b/src/share/vm/utilities/xmlstream.cpp index c82010c1b..8646c309b 100644 --- a/src/share/vm/utilities/xmlstream.cpp +++ b/src/share/vm/utilities/xmlstream.cpp @@ -192,8 +192,11 @@ void xmlStream::pop_tag(const char* tag) { _element_close_stack_ptr = cur_tag + strlen(cur_tag) + 1; _element_depth -= 1; } - if (bad_tag && !VMThread::should_terminate() && !is_error_reported()) + if (bad_tag && !VMThread::should_terminate() && !VM_Exit::vm_exited() && + !is_error_reported()) + { assert(false, "bad tag in log"); + } } #endif -- GitLab