]> granicus.if.org Git - gc/commit
2010-12-26 Ivan Maidanski <ivmai@mail.ru> (mostly really Geoff Norton
authorivmai <ivmai>
Sun, 26 Dec 2010 14:20:38 +0000 (14:20 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:55 +0000 (21:06 +0400)
commit7b66e36f08dd096bc6df1ebc362d2689264f7825
treece2884e5f794a843f6849592dd437c4e34eb427c
parentda518ec93509c607211f69d1ab0565fe0b663397
2010-12-26  Ivan Maidanski  <ivmai@mail.ru> (mostly really Geoff Norton
                                             and Jonathan Pryor)

* configure.ac: Use AC_CHECK_LIB() to check for pthread instead of
just blindly linking to -lpthread, as Android includes pthread
support within libc and does not provide a separate libpthread.
* dyn_load.c (GC_register_dynamic_libraries): Skip current link map
entry if l_addr is NULL (Android/bionic only).
* pthread_stop_world.c (android_thread_kill): New internal function
(Android only).
* pthread_stop_world.c (GC_suspend_all, GC_start_world): Call
android_thread_kill (based on tkill) instead of pthread_kill on
Android (since pthread_kill cannot be used safely on the platform).
* pthread_support.c (GC_new_thread): Store thread Id (obtained from
gettid) for use by android_thread_kill (Android only).
* include/private/pthread_support.h (GC_Thread_Rep): Add kernel_id
structure member (Android only).
* include/private/gcconfig.h: Recognize __x86_64 macro as a synonym
of __x86_64__ (Darwin); define __environ macro (Android on M68K).
* configure: Regenerate.
ChangeLog
configure
configure.ac
dyn_load.c
include/private/gcconfig.h
include/private/pthread_support.h
pthread_stop_world.c
pthread_support.c