]> granicus.if.org Git - gc/commit
Fix assertion violation in DllMain of win32_threads
authorIvan Maidanski <ivmai@mail.ru>
Thu, 22 Mar 2018 08:24:04 +0000 (11:24 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 17 Apr 2018 20:23:21 +0000 (23:23 +0300)
commit2d31ec9190d8f987ce11dac15826a645e765add7
tree0cf2291620a6e12cabbba0a84727becbeeb302d1
parent6c166ce6b15f10c49a060f892cd9618de58cf4fc
Fix assertion violation in DllMain of win32_threads

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.
win32_threads.c