summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorRiku Voipio2011-03-04 14:27:29 +0100
committerRiku Voipio2011-04-26 09:15:40 +0200
commit05098a9315819621405eb662baddeec624127d7a (patch)
treec36a3765b3be6f6057af0d7383ce81b19dfd1e98 /linux-user/syscall.c
parentdoc: fix slirp description (diff)
downloadqemu-05098a9315819621405eb662baddeec624127d7a.tar.gz
qemu-05098a9315819621405eb662baddeec624127d7a.tar.xz
qemu-05098a9315819621405eb662baddeec624127d7a.zip
[v2] linux-user: bigger default stack
PTHREAD_STACK_MIN (16KB) is somewhat inadequate for a new stack for new QEMU threads. Set new limit to 256K which should be enough, yet doesn't increase memory pressure significantly. Signed-off-by: Riku Voipio <riku.voipio@nokia.com> Reviewed-by: Nathan Froyd <froydnj@codesourcery.com>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index bb0999d1ab..732f71a6a0 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3690,9 +3690,9 @@ static abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
#endif /* defined(TARGET_I386) */
-#if defined(CONFIG_USE_NPTL)
+#define NEW_STACK_SIZE 0x40000
-#define NEW_STACK_SIZE PTHREAD_STACK_MIN
+#if defined(CONFIG_USE_NPTL)
static pthread_mutex_t clone_lock = PTHREAD_MUTEX_INITIALIZER;
typedef struct {
@@ -3736,9 +3736,6 @@ static void *clone_func(void *arg)
return NULL;
}
#else
-/* this stack is the equivalent of the kernel stack associated with a
- thread/process */
-#define NEW_STACK_SIZE 8192
static int clone_func(void *arg)
{