diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2021-12-25 09:42:38 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-12-25 09:42:38 +0300 |
commit | 1175c7e625a9f0c58c1126a2205e5520fcde73c5 (patch) | |
tree | 4dce60f1d9a84528ee3f72ec9e253a02327fbf8b | |
parent | 992544648b32dcee338585401fa6df60cef992a2 (diff) | |
download | bdwgc-1175c7e625a9f0c58c1126a2205e5520fcde73c5.tar.gz |
Fix parallel_initialized assertion violation in initsecondarythread (Win32)
* win32_threads.c [!GC_PTHREADS && !GC_NO_THREADS_DISCOVERY]
(GC_DllMain): Do not assert parallel_initialized unless
GC_win32_dll_threads on DLL_THREAD_DETACH.
-rw-r--r-- | win32_threads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32_threads.c b/win32_threads.c index 452c22f6..bef0a224 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -3178,8 +3178,8 @@ GC_INNER void GC_thr_init(void) case DLL_THREAD_DETACH: /* We are hopefully running in the context of the exiting thread. */ - GC_ASSERT(parallel_initialized); if (GC_win32_dll_threads) { + GC_ASSERT(parallel_initialized); GC_delete_thread(GetCurrentThreadId()); } break; |