From: Geoff Norton Date: Thu, 14 Oct 2010 16:53:01 +0000 (-0400) Subject: [android] pthread_kill cannot be used safely on android X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0798bd9229268714008cf05b750053faf39288e;p=gc [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 --- 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;