commit 4b1d3d89b85aee49efa2bd79fd238045693e0a2e Author: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Thu Jan 9 13:04:18 2014 +0100 Revert "libports: remove the threadvars stack size hack" This reverts commit 3a3fcc811e6b50b21124a5c5a128652e788a3b67. diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index 64e442f..dcebd09 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -28,6 +28,10 @@ #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 @@ -106,6 +110,7 @@ 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);