From e955362cfcef47fdc3ad2140f50ea4638fd86a4d Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 26 Jul 2011 15:31:21 +0400 Subject: gc5.0alpha3 tarball import --- linux_threads.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linux_threads.c') 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) -- cgit v1.2.1