src/hotspot/os/windows/os_windows.cpp
changeset 57764 2c66dbb94227
parent 57651 ddae2da329ed
child 57804 9b7b9f16dfd9
--- 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