]> 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 22:24:32 +0000 (01:24 +0300)
commit751ba1c65ac5622abec8d63a9be13d174e1df954
tree73a95f0f1fac6a570e9bf1399c68cca161fe946e
parent58a53d03871e507a4fb2379859bfacf6b256e2d9
Fix assertion violation in DllMain of win32_threads
(back-port of commit 2d31ec91 from 'release-7_4')

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