8079441: Intermittent failures on Windows with "Unexpected exit from test [exit code: 1080890248]" (0x406d1388)

Do not raise (windows thread name) exception 0x406d1388 when no debugger is attached.

Reviewed-by: iklam, stuefe
This commit is contained in:
Robbin Ehn 2017-01-11 12:47:16 +01:00
parent 421bf2f22d
commit b1c82624b9

View File

@ -778,6 +778,11 @@ void os::set_native_thread_name(const char *name) {
// is already attached to a debugger; debugger must observe
// the exception below to show the correct name.
// If there is no debugger attached skip raising the exception
if (!IsDebuggerPresent()) {
return;
}
const DWORD MS_VC_EXCEPTION = 0x406D1388;
struct {
DWORD dwType; // must be 0x1000