Fix Win32 GC_unregister_my_thread to ensure no ongoing incremental GC
authorIvan Maidanski <ivmai@mail.ru>
Tue, 21 Feb 2012 17:12:47 +0000 (21:12 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 21 Feb 2012 17:12:47 +0000 (21:12 +0400)
commitebc9293f7e04fabcb014b1b26e1895def182afeb
tree66aff750de9d266f88f5b2f70ce4240724257c3f
parent53ef1bdd57b26fcd05223a2e509fcbceef29406d
Fix Win32 GC_unregister_my_thread to ensure no ongoing incremental GC

* win32_threads.c (GC_wait_for_gc_completion): Add function (similar
implementation as in pthread_support.c).
* win32_threads.c (GC_unregister_my_thread, GC_thread_exit_proc):
Call GC_wait_for_gc_completion to prevent collecting from unregistered
thread; remove FIXME.
win32_threads.c