summaryrefslogtreecommitdiff
path: root/linux_threads.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-07-26 15:31:21 +0400
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 15:31:21 +0400
commite955362cfcef47fdc3ad2140f50ea4638fd86a4d (patch)
tree07b9d240b8bc1a7be60cc79c1ce1e43866e2b4a7 /linux_threads.c
parentc63ec8250de446bca83601966c918d37ad120a83 (diff)
downloadbdwgc-e955362cfcef47fdc3ad2140f50ea4638fd86a4d.tar.gz
gc5.0alpha3 tarball importgc5_0alpha3
Diffstat (limited to 'linux_threads.c')
-rw-r--r--linux_threads.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux_threads.c b/linux_threads.c
index 4bcdd3a1..8287dce6 100644
--- a/linux_threads.c
+++ b/linux_threads.c
@@ -118,12 +118,12 @@ GC_linux_thread_top_of_stack() relies on implementation details of
LinuxThreads, namely that thread stacks are allocated on 2M boundaries
and grow to no more than 2M.
To make sure that we're using LinuxThreads and not some other thread
-package, we generate a dummy reference to `__pthread_initial_thread_bos',
+package, we generate a dummy reference to `pthread_kill_other_threads_np'
+(was `__pthread_initial_thread_bos' but that disappeared),
which is a symbol defined in LinuxThreads, but (hopefully) not in other
thread packages.
*/
-extern char * __pthread_initial_thread_bos;
-char **dummy_var_to_force_linux_threads = &__pthread_initial_thread_bos;
+void (*dummy_var_to_force_linux_threads)() = pthread_kill_other_threads_np;
#define LINUX_THREADS_STACK_SIZE (2 * 1024 * 1024)