[PATCH] Floating stacks for Alpha and Sparc
Jakub Jelinek
jakub@redhat.com
Mon Jul 23 01:24:00 GMT 2001
On Mon, Jul 23, 2001 at 12:02:56AM -0700, Ulrich Drepper wrote:
> tst-regex should work again. I've changed the memory handling of the
> WCHAR version to not use too much stack. Please give it a try on your
> favorite non-floating-stack-using platform.
Since I don't want to test this on Alpha nor Sparc ( ;) ), here is a patch
so that none of my favourite platforms are non-floating-stack-using.
Seems to work fine.
2001-07-23 Jakub Jelinek <jakub@redhat.com>
* sysdeps/alpha/pt-machine.h (FLOATING_STACKS): Define.
(ARCH_STACK_MAX_SIZE): Define.
* sysdeps/sparc/sparc32/pt-machine.h: Likewise.
* sysdeps/sparc/sparc64/pt-machine.h: Likewise.
--- libc/linuxthreads/sysdeps/alpha/pt-machine.h 2000/04/18 09:23:41
+++ libc/linuxthreads/sysdeps/alpha/pt-machine.h 2001/07/20 11:02:57
@@ -108,3 +108,9 @@ __compare_and_swap (long int *p, long in
return ret;
}
+
+/* We want the OS to assign stack addresses. */
+#define FLOATING_STACKS 1
+
+/* Maximum size of the stack if the rlimit is unlimited. */
+#define ARCH_STACK_MAX_SIZE 32*1024*1024
--- libc/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h 2001/04/18 07:59:40
+++ libc/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h 2001/07/20 11:02:57
@@ -63,3 +63,9 @@ register struct _pthread_descr_struct *_
#define THREAD_GETMEM_NC(descr, member) __thread_self->member
#define THREAD_SETMEM(descr, member, value) __thread_self->member = (value)
#define THREAD_SETMEM_NC(descr, member, value) __thread_self->member = (value)
+
+/* We want the OS to assign stack addresses. */
+#define FLOATING_STACKS 1
+
+/* Maximum size of the stack if the rlimit is unlimited. */
+#define ARCH_STACK_MAX_SIZE 8*1024*1024
--- libc/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h 2001/04/18 07:59:40
+++ libc/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h 2001/07/20 11:02:57
@@ -86,3 +86,9 @@ __compare_and_swap (long int *p, long in
#define THREAD_GETMEM_NC(descr, member) __thread_self->member
#define THREAD_SETMEM(descr, member, value) __thread_self->member = (value)
#define THREAD_SETMEM_NC(descr, member, value) __thread_self->member = (value)
+
+/* We want the OS to assign stack addresses. */
+#define FLOATING_STACKS 1
+
+/* Maximum size of the stack if the rlimit is unlimited. */
+#define ARCH_STACK_MAX_SIZE 32*1024*1024
Jakub
More information about the Libc-hacker
mailing list