From e0798bd9229268714008cf05b750053faf39288e Mon Sep 17 00:00:00 2001 From: Geoff Norton Date: Thu, 14 Oct 2010 12:53:01 -0400 Subject: [PATCH] [android] pthread_kill cannot be used safely on android Android's fork() function does not properly update the pthread_internal_t->threadid variable to point to the tid of the fork()'d thread, and instead still points to the pid of zygote. As a result we need to track the android tid's manually since gettid() is sane, and use an alternate to pthread_kill on android Additionally, disable sgen support on android until the same work has been done there r: kumpera, vargaz --- pthread_stop_world.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 603aff78..5a1b9f37 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -315,6 +315,7 @@ pthread_t GC_stopping_thread; int GC_stopping_pid; #ifdef PLATFORM_ANDROID +static int android_thread_kill(pid_t tid, int sig) { int ret; -- 2.40.0