diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2015-10-30 00:08:44 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2015-10-30 00:08:44 +0300 |
commit | 9a0a94c4f27fd7930406ad804dfc845456e6c6dd (patch) | |
tree | 81b76245fa3c44c77be9e837812eba7d3744cb74 /pthread_support.c | |
parent | 7587b80ee1803c1bc8a8a04ce3daaecf2cf70925 (diff) | |
download | bdwgc-9a0a94c4f27fd7930406ad804dfc845456e6c6dd.tar.gz |
Do no declare kernel_id field of GC_Thread_Rep for 64-bit Android
* include/private/pthread_support.h (GC_Thread_Rep): Do not declare
kernel_id field unless USE_TKILL_ON_ANDROID (instead of
PLATFORM_ANDROID).
* pthread_support.c (GC_new_thread, GC_remove_all_threads_but_me): Do
not set kernel_id field unless USE_TKILL_ON_ANDROID.
Diffstat (limited to 'pthread_support.c')
-rw-r--r-- | pthread_support.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pthread_support.c b/pthread_support.c index 7c5af41f..d9f935f7 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -513,7 +513,7 @@ STATIC GC_thread GC_new_thread(pthread_t id) if (result == 0) return(0); } result -> id = id; -# ifdef PLATFORM_ANDROID +# ifdef USE_TKILL_ON_ANDROID result -> kernel_id = gettid(); # endif result -> next = GC_threads[hv]; @@ -717,7 +717,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) +# endif +# ifdef USE_TKILL_ON_ANDROID me -> kernel_id = gettid(); # endif # if defined(THREAD_LOCAL_ALLOC) && !defined(USE_CUSTOM_SPECIFIC) |