summaryrefslogtreecommitdiff
path: root/debian/patches/revert-remove-threadvars-hack.patch
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-01-09 13:06:24 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-01-09 13:06:24 +0100
commit2c80b2cb1b63a9998fa270133004ed0692c91802 (patch)
treedc1b22d05d1ebb0b53a2867032a06728e5ac726a /debian/patches/revert-remove-threadvars-hack.patch
parent79ba3b3a019a2f6a22b5972330924c5c87245479 (diff)
enable translatorslist-detect-passive-translators.patch, add revert-remove-threadvars-hack.patch
Diffstat (limited to 'debian/patches/revert-remove-threadvars-hack.patch')
-rw-r--r--debian/patches/revert-remove-threadvars-hack.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/revert-remove-threadvars-hack.patch b/debian/patches/revert-remove-threadvars-hack.patch
new file mode 100644
index 00000000..173e6e32
--- /dev/null
+++ b/debian/patches/revert-remove-threadvars-hack.patch
@@ -0,0 +1,31 @@
+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);
+