mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8185734: [Windows] Structured Exception Catcher missing around gtest execution
Reviewed-by: dholmes, ihse
This commit is contained in:
parent
3ab1dfeb8f
commit
568dc29b9a
5 changed files with 17 additions and 0 deletions
|
@ -512,6 +512,7 @@ struct tm* os::gmtime_pd(const time_t* clock, struct tm* res) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
JNIEXPORT
|
||||
LONG WINAPI topLevelExceptionFilter(struct _EXCEPTION_POINTERS* exceptionInfo);
|
||||
|
||||
// Thread start routine for all newly created threads
|
||||
|
@ -2441,6 +2442,7 @@ static inline void report_error(Thread* t, DWORD exception_code,
|
|||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
JNIEXPORT
|
||||
LONG WINAPI topLevelExceptionFilter(struct _EXCEPTION_POINTERS* exceptionInfo) {
|
||||
if (InterceptOSException) return EXCEPTION_CONTINUE_SEARCH;
|
||||
PEXCEPTION_RECORD exception_record = exceptionInfo->ExceptionRecord;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue