diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-02-25 22:57:58 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-02-25 22:57:58 +0400 |
commit | af628c6871ad11deaef903d6fe06293f123c6369 (patch) | |
tree | e1859ba58641dd2850cd5926b17318cd8e589d8d /thread_local_alloc.c | |
parent | 7c8e3674b8915ed3fce702fdcb396b4145ee9758 (diff) | |
download | bdwgc-af628c6871ad11deaef903d6fe06293f123c6369.tar.gz |
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).
Diffstat (limited to 'thread_local_alloc.c')
-rw-r--r-- | thread_local_alloc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/thread_local_alloc.c b/thread_local_alloc.c index d7031e3b..36289101 100644 --- a/thread_local_alloc.c +++ b/thread_local_alloc.c @@ -128,9 +128,6 @@ GC_INNER void GC_destroy_thread_local(GC_tlfs p) { /* We currently only do this from the thread itself or from */ /* the fork handler for a child process. */ -# ifndef HANDLE_FORK - GC_ASSERT(GC_getspecific(GC_thread_key) == (void *)p); -# endif return_freelists(p -> ptrfree_freelists, GC_aobjfreelist); return_freelists(p -> normal_freelists, GC_objfreelist); # ifdef GC_GCJ_SUPPORT |