From: Ivan Maidanski Date: Fri, 30 Nov 2012 14:01:30 +0000 (+0400) Subject: Fix GC_remove_all_threads_but_me for Android (fork support) X-Git-Tag: gc7_4_0~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9178e2b8f10eab0ac54c504c85022d0ea8ded36b;p=gc 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). --- diff --git a/pthread_support.c b/pthread_support.c index c65ecfab..da24d10e 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 */