[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 02/04: libports_revert_stacksize.patch: New patch to revert upstr
From: |
Samuel Thibault |
Subject: |
[hurd] 02/04: libports_revert_stacksize.patch: New patch to revert upstream cleanup |
Date: |
Tue, 14 Jan 2014 02:02:30 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch master
in repository hurd.
commit e1002d600d116a072cd77bfa49f011ed9561c8dc
Author: Samuel Thibault <address@hidden>
Date: Tue Jan 14 00:40:51 2014 +0000
libports_revert_stacksize.patch: New patch to revert upstream cleanup
---
debian/changelog | 6 +++--
debian/patches/libports_revert_stacksize.patch | 36 ++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index c8f0df1..2e04091 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,12 +3,14 @@ hurd (1:0.5.git20140113-1) unstable; urgency=low
[ Samuel Thibault ]
* New upstream snapshot.
- refresh patches.
+ * patches/libports_revert_stacksize.patch: New patch to revert upstream
+ cleanup.
[ Justus Winter ]
* patches/exec_filename_fix.patch: Fix passing path in hurdish
- fakeroot/chroot.
+ fakeroot/chroot.
- -- Samuel Thibault <address@hidden> Mon, 13 Jan 2014 22:52:51 +0000
+ -- Samuel Thibault <address@hidden> Tue, 14 Jan 2014 00:40:23 +0000
hurd (1:0.5.git20131101-1) unstable; urgency=low
diff --git a/debian/patches/libports_revert_stacksize.patch
b/debian/patches/libports_revert_stacksize.patch
new file mode 100644
index 0000000..da15749
--- /dev/null
+++ b/debian/patches/libports_revert_stacksize.patch
@@ -0,0 +1,36 @@
+Revert this for now, will have to wait for thread destruction patch, available
in glibc 2.18
+
+commit 3a3fcc811e6b50b21124a5c5a128652e788a3b67
+Author: Richard Braun <address@hidden>
+Date: Sat Dec 28 09:15:03 2013 +0100
+
+ 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.
+
+diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c
+index dcebd09..64e442f 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
+@@ -110,6 +106,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);
+
diff --git a/debian/patches/series b/debian/patches/series
index 652c23b..043bf2a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -42,3 +42,4 @@ exec_filename_fix.patch
mount-loop.patch
proc_set_init_task.patch
newRPC.patch
+libports_revert_stacksize.patch
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git