]> granicus.if.org Git - gc/commitdiff
2011-04-24 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Sun, 24 Apr 2011 13:09:21 +0000 (13:09 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:58 +0000 (21:06 +0400)
* pthread_support.c (GC_get_nprocs): Don't define for Android.
* pthread_support.c (GC_dummy_thread_local): Don't test
GC_LINUX_THREADS.
* include/gc_config_macros.h (GC_ADD_CALLER, GC_RETURN_ADDR):
Define for Android.

ChangeLog
include/gc_config_macros.h
pthread_support.c

index d2acb1c4ebcd125ee08b2b27d65f29473de10a5c..bfbf9de7303103d8385dc337c17dab74506c99ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-04-24  Ivan Maidanski  <ivmai@mail.ru>
+
+       * pthread_support.c (GC_get_nprocs): Don't define for Android.
+       * pthread_support.c (GC_dummy_thread_local): Don't test
+       GC_LINUX_THREADS.
+       * include/gc_config_macros.h (GC_ADD_CALLER, GC_RETURN_ADDR):
+       Define for Android.
+
 2011-04-24  Ivan Maidanski  <ivmai@mail.ru>
 
        * mach_dep.c (NO_GETCONTEXT): Move to gcconfig.h.
index 030218e4d9f7878145b2233571774ea633b65e12..a27f8dd7a1db8ef440c4e5cea1e51d007a669991 100644 (file)
 /* This may also be desirable if it is possible but expensive to        */
 /* retrieve the call chain.                                             */
 #if (defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) \
-     || defined(__FreeBSD__) || defined(__DragonFly__)) \
-    && !defined(GC_CAN_SAVE_CALL_STACKS)
+     || defined(__FreeBSD__) || defined(__DragonFly__) \
+     || defined(PLATFORM_ANDROID)) && !defined(GC_CAN_SAVE_CALL_STACKS)
 # define GC_ADD_CALLER
 # if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
     /* gcc knows how to retrieve return address, but we don't know      */
index d9c3792cfbb8921a3fe36a47a27942b8600e76bf..2feeac3ea58b9e244c0b29dd8ff07bd0b2f50893 100644 (file)
@@ -707,7 +707,7 @@ STATIC void GC_remove_all_threads_but_me(void)
   }
 #endif /* IA64 */
 
-#if defined(GC_LINUX_THREADS) && !defined(NACL)
+#if defined(GC_LINUX_THREADS) && !defined(PLATFORM_ANDROID) && !defined(NACL)
   /* Return the number of processors. */
   STATIC int GC_get_nprocs(void)
   {
@@ -883,7 +883,7 @@ STATIC void GC_fork_child_proc(void)
   }
 #endif  /* GC_DARWIN_THREADS || ... */
 
-#if defined(GC_LINUX_THREADS) && defined(INCLUDE_LINUX_THREAD_DESCR)
+#ifdef INCLUDE_LINUX_THREAD_DESCR
   __thread int GC_dummy_thread_local;
 #endif