From fcfae7f8141c145d1c0875984b1ea38218740636 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 21 Apr 2012 19:57:25 +0400 Subject: [PATCH] Fix GC_remove_all_threads_but_me to cleanup thread-specific data storage * pthread_support.c (GC_remove_all_threads_but_me): Call GC_remove_specific after destroying thread-local list. --- pthread_support.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pthread_support.c b/pthread_support.c index d86c617f..ca455d76 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -681,6 +681,7 @@ STATIC void GC_remove_all_threads_but_me(void) # ifdef THREAD_LOCAL_ALLOC if (!(p -> flags & FINISHED)) { GC_destroy_thread_local(&(p->tlfs)); + GC_remove_specific(GC_thread_key); } # endif if (p != &first_thread) GC_INTERNAL_FREE(p); -- 2.50.1