summaryrefslogtreecommitdiff
path: root/specific.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2006-05-19 02:58:44 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:37 +0200
commit5a4029619166b0e9cce266bc1408ade9afd49351 (patch)
tree97d5c2c24c75525fbec40e9ddd243628a709fbcf /specific.c
parent202c39dc85257e50c8ecacba67a4e804ec90bc99 (diff)
2006-05-18 Hans Boehm <Hans.Boehm@hp.com>
* pthread_support.c: Fix stack size sanity check for Solaris. * specific.c: Use for non-Linux platforms. * include/private/thread_local_alloc.h: GC-remove_specific always takes an argument. * configure.ac: Enable thread-local allocation on Solaris. * configure: Regenerate.
Diffstat (limited to 'specific.c')
-rw-r--r--specific.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/specific.c b/specific.c
index 7938664..b8ea49d 100644
--- a/specific.c
+++ b/specific.c
@@ -12,11 +12,14 @@
*/
#include "private/gc_priv.h" /* For configuration, pthreads.h. */
+#include "private/thread_local_alloc.h"
+ /* To determine type of tsd impl. */
+ /* Includes private/specific.h */
+ /* if needed. */
-#if defined(GC_LINUX_THREADS)
+#if defined(USE_CUSTOM_SPECIFIC)
#include "atomic_ops.h"
-#include "private/specific.h"
static tse invalid_tse = {INVALID_QTID, 0, 0, INVALID_THREADID};
/* A thread-specific data entry which will never */
@@ -159,4 +162,4 @@ void PREFIXED(check_tsd_marks) (tsd *key)
#endif
-#endif /* GC_LINUX_THREADS */
+#endif /* USE_CUSTOM_SPECIFIC */