summaryrefslogtreecommitdiff
path: root/win32_threads.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-05-30 21:50:47 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-05-30 21:51:42 +0300
commit009b59a84bad832f2750947c02a10f521ff50ba6 (patch)
tree3622002e2620ac3c1bc50b2f0d0e16c5d31b1628 /win32_threads.c
parentfda32b16b9021ec39f71bedf6e5af1659a27cef7 (diff)
downloadbdwgc-009b59a84bad832f2750947c02a10f521ff50ba6.tar.gz
Do not assert that GC is initialized at DLL_THREAD_DETACH (Win32)
(fix of commits 3d7e4a8c6, 1175c7e62) This is to match DLL_THREAD_ATTACH case if parallel_initialized is false. * win32_threads.c [!GC_NO_THREADS_DISCOVERY && !GC_PTHREADS] (GC_DllMain): Remove assertion that parallel_initialized is set (i.e. for the case when GC_win32_dll_threads is set).
Diffstat (limited to 'win32_threads.c')
-rw-r--r--win32_threads.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/win32_threads.c b/win32_threads.c
index 7ca56c54..75c8fcb4 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -3181,7 +3181,6 @@ GC_INNER void GC_thr_init(void)
case DLL_THREAD_DETACH:
/* We are hopefully running in the context of the exiting thread. */
if (GC_win32_dll_threads) {
- GC_ASSERT(parallel_initialized);
GC_delete_thread(GetCurrentThreadId());
}
break;