comparison src/share/vm/utilities/xmlstream.cpp @ 4897:1ac084126285

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
author dlong
date Tue, 24 Jan 2012 18:00:54 -0500
parents 1d1603768966
children d2a62e0f25eb
comparison
equal deleted inserted replaced
4789:5acd82522540 4897:1ac084126285
190 } else { 190 } else {
191 // Pop the stack, by skipping over the tag and its null. 191 // Pop the stack, by skipping over the tag and its null.
192 _element_close_stack_ptr = cur_tag + strlen(cur_tag) + 1; 192 _element_close_stack_ptr = cur_tag + strlen(cur_tag) + 1;
193 _element_depth -= 1; 193 _element_depth -= 1;
194 } 194 }
195 if (bad_tag && !VMThread::should_terminate() && !is_error_reported()) 195 if (bad_tag && !VMThread::should_terminate() && !VM_Exit::vm_exited() &&
196 !is_error_reported())
197 {
196 assert(false, "bad tag in log"); 198 assert(false, "bad tag in log");
199 }
197 } 200 }
198 #endif 201 #endif
199 202
200 203
201 // ------------------------------------------------------------------ 204 // ------------------------------------------------------------------