8229699: [Graal] jck tests fail on windows with AOTed Graal
authorbobv
Thu, 15 Aug 2019 19:29:58 +0000
changeset 57764 2c66dbb94227
parent 57763 47511761bd04
child 57765 a89ec7fc99aa
8229699: [Graal] jck tests fail on windows with AOTed Graal Reviewed-by: kvn
src/hotspot/os/windows/os_windows.cpp
--- a/src/hotspot/os/windows/os_windows.cpp	Thu Aug 15 13:41:30 2019 -0700
+++ b/src/hotspot/os/windows/os_windows.cpp	Thu Aug 15 19:29:58 2019 +0000
@@ -4122,7 +4122,7 @@
   // in order to forward implicit exceptions from code in AOT
   // generated DLLs.  This is necessary since these DLLs are not
   // registered for structured exceptions like codecache methods are.
-  if (UseAOT) {
+  if (AOTLibrary != NULL && (UseAOT || FLAG_IS_DEFAULT(UseAOT))) {
     topLevelVectoredExceptionHandler = AddVectoredExceptionHandler( 1, topLevelVectoredExceptionFilter);
   }
 #endif