mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7130319: C2: running with -XX:+PrintOptoAssembly crashes the VM with assert(false) failed: bad tag in log
Relax assert to allow the VMThread to close the log while the compiler thread is still writing to it. Reviewed-by: dholmes, never
This commit is contained in:
parent
d2f69b4d5d
commit
7f5b035542
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue