diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-11-26 03:46:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-26 03:46:39 +0300 |
commit | 8526267c1de7736e0b93914934030e27f3a87f42 (patch) | |
tree | b47eb8f5bd635df3a8083d513f3b93740c4e9b2a /src/Native/Runtime/PalRedhawkFunctions.h | |
parent | a3136c4b2a1cdbcfaeff424e5c1a08a26bd98384 (diff) |
Fix shutdown hang when running CoreCLR tests (#2264)
- Call RhpShutdown before returning from C++ main method. This will tell the runtime skip thread cleanup that otherwise leads to intermittent deadlock in half-torn down process state.
- Apply the same fix to Environment.Exit.
- Switch CppCodeGen to the fixed bootstrap main method so that it can naturally get this fix as well.
Fixes #2222.
Diffstat (limited to 'src/Native/Runtime/PalRedhawkFunctions.h')
-rw-r--r-- | src/Native/Runtime/PalRedhawkFunctions.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Native/Runtime/PalRedhawkFunctions.h b/src/Native/Runtime/PalRedhawkFunctions.h index c11b08cd1..0bb53e3e7 100644 --- a/src/Native/Runtime/PalRedhawkFunctions.h +++ b/src/Native/Runtime/PalRedhawkFunctions.h @@ -56,12 +56,6 @@ inline UInt32 PalEventWrite(REGHANDLE arg1, const EVENT_DESCRIPTOR * arg2, UInt3 return EventWrite(arg1, arg2, arg3, arg4); } -extern "C" void __stdcall ExitProcess(UInt32); -inline void PalExitProcess(UInt32 arg1) -{ - ExitProcess(arg1); -} - extern "C" void __stdcall FlushProcessWriteBuffers(); inline void PalFlushProcessWriteBuffers() { |