From 3a3fcc811e6b50b21124a5c5a128652e788a3b67 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sat, 28 Dec 2013 09:15:03 +0100 Subject: libports: remove the threadvars stack size hack Setting the stack size should now correctly be supported by libpthread. * libports/manage-multithread.c (__pthread_stack_default_size): Remove global variable. --- libports/manage-multithread.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libports') diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index dcebd097..64e442fe 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -28,10 +28,6 @@ #define STACK_SIZE (64 * 1024) -/* FIXME Until threadvars are completely replaced with correct TLS, use this - hack to set the stack size. */ -size_t __pthread_stack_default_size = STACK_SIZE; - #define THREAD_PRI 2 /* XXX To reduce starvation, the priority of new threads is initially @@ -110,7 +106,6 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, auto void * thread_function (void *); - /* FIXME This is currently a no-op. */ pthread_attr_init (&attr); pthread_attr_setstacksize (&attr, STACK_SIZE); -- cgit v1.2.3