changeset 43438:af4378756105

8079441: Intermittent failures on Windows with "Unexpected exit from test [exit code: 1080890248]" (0x406d1388) Summary: Do not raise (windows thread name) exception 0x406d1388 when no debugger is attached. Reviewed-by: iklam, stuefe
author rehn
date Wed, 11 Jan 2017 12:47:16 +0100
parents 90e15b78684e
children 5e03c9ba74f3
files hotspot/src/os/windows/vm/os_windows.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/os/windows/vm/os_windows.cpp	Wed Jan 11 09:40:42 2017 +0100
+++ b/hotspot/src/os/windows/vm/os_windows.cpp	Wed Jan 11 12:47:16 2017 +0100
@@ -778,6 +778,11 @@
   // 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