From 7ea8eb02b0f6965926cb029c8567c418f548e798 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 23 Nov 2007 06:37:58 +0000 Subject: [BZ #5382] * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define. * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE. * nscd/mem.c (gc): Don't allocate arrays on stack if it can overflow it. * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread): Return zero in case thread library is not NPTL. --- nscd/nscd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nscd/nscd.h') diff --git a/nscd/nscd.h b/nscd/nscd.h index 12b1f85..7ff3894 100644 --- a/nscd/nscd.h +++ b/nscd/nscd.h @@ -55,6 +55,10 @@ typedef enum #define RESTART_INTERVAL (60 * 60) +/* Stack size for worker threads. */ +#define NSCD_THREAD_STACKSIZE 1024 * 1024 * (sizeof (void *) / 4) + + /* Structure describing dynamic part of one database. */ struct database_dyn { -- cgit v1.1