]> granicus.if.org Git - gc/commit
[android] pthread_kill cannot be used safely on android
authorGeoff Norton <grompf@sublimeintervention.com>
Thu, 14 Oct 2010 16:53:01 +0000 (12:53 -0400)
committerguest <ivmai@mail.ru>
Fri, 29 Jul 2011 11:31:22 +0000 (15:31 +0400)
commite0798bd9229268714008cf05b750053faf39288e
treed1e0597325ed82d833468b1254b2e915c6143b6d
parentf3d0d4c849b3e0a8dc7906ce2fbd45e700bfa0c8
[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