From 9178e2b8f10eab0ac54c504c85022d0ea8ded36b Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 30 Nov 2012 18:01:30 +0400 Subject: [PATCH] Fix GC_remove_all_threads_but_me for Android (fork support) * pthread_support.c (GC_remove_all_threads_but_me): Update kernel_id of "me" (if PLATFORM_ANDROID). --- pthread_support.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pthread_support.c b/pthread_support.c index c65ecfa..da24d10 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -677,6 +677,8 @@ STATIC void GC_remove_all_threads_but_me(void) /* GC_destroy_thread_local and GC_free_internal */ /* before update). */ me -> stop_info.mach_thread = mach_thread_self(); +# elif defined(PLATFORM_ANDROID) + me -> kernel_id = gettid(); # endif # if defined(THREAD_LOCAL_ALLOC) && !defined(USE_CUSTOM_SPECIFIC) /* Some TLS implementations might be not fork-friendly, so */ -- 2.7.4