]> granicus.if.org Git - gc/commit
Code refactoring of GC_destroy_thread_local (move assertion on 'tlfs'
authorIvan Maidanski <ivmai@mail.ru>
Sat, 25 Feb 2012 18:57:58 +0000 (22:57 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 25 Feb 2012 18:57:58 +0000 (22:57 +0400)
commitaf628c6871ad11deaef903d6fe06293f123c6369
treee1859ba58641dd2850cd5926b17318cd8e589d8d
parent7c8e3674b8915ed3fce702fdcb396b4145ee9758
Code refactoring of GC_destroy_thread_local (move assertion on 'tlfs'
out of function since otherwise assertion is skipped if HANDLE_FORK)

* pthread_support.c (GC_unregister_my_thread_inner): Add assertion on
"tlfs" value before GC_destroy_thread_local() invocation.
* win32_threads.c (GC_unregister_my_thread, GC_thread_exit_proc):
Likewise.
* thread_local_alloc.c (GC_destroy_thread_local): Remove assertion on
"tlfs" value (since it was skipped if HANDLE_FORK because of the
function invocation from GC_remove_all_threads_but_me).
pthread_support.c
thread_local_alloc.c
win32_threads.c