From 009b59a84bad832f2750947c02a10f521ff50ba6 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 30 May 2022 21:50:47 +0300 Subject: 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). --- win32_threads.c | 1 - 1 file changed, 1 deletion(-) (limited to 'win32_threads.c') 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; -- cgit v1.2.1