DllMain(DLL_THREAD_ATTACH) might be called for C runtime threads
before main() is launched, so this commit just removes wrong
assertion in DllMain.
* win32_threads.c [!GC_NO_THREADS_DISCOVERY] (GC_DllMain): Remove
entry_count static variable; remove assertion for entry_count and
parallel_initialized values in DLL_THREAD_ATTACH case.
LPVOID reserved GC_ATTR_UNUSED)
{
DWORD thread_id;
- static int entry_count = 0;
/* Note that GC_use_threads_discovery should be called by the */
/* client application at start-up to activate automatic thread */
break;
}
# endif
- GC_ASSERT(entry_count == 0 || parallel_initialized);
- ++entry_count;
/* FALLTHRU */
case DLL_PROCESS_ATTACH:
/* This may run with the collector uninitialized. */