[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] linux-user: bigger default stack
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] linux-user: bigger default stack |
Date: |
Thu, 3 Mar 2011 16:01:50 +0000 |
On 3 March 2011 15:46, Nathan Froyd <address@hidden> wrote:
> On Thu, Mar 03, 2011 at 05:37:37PM +0200, Riku Voipio wrote:
>> PTHREAD_STACK_MIN (16KB) is somewhat inadequate for a new stack. follow
>> the pthread_create defaults, ie setting to RLIMIT_STACK or if unlimited
>> to 2MB.
>
> For what sort oof cases is it inadequate? This stack is just for QEMU's
> usage and QEMU shouldn't be using very much. The target thread could
> use quite a bit of course, but that's handled elsewhere.
Maybe it's the fault of the alloca() usage in linux-user/syscalls.c?
Some of the syscall emulations do alloca(some size determined by the
target binary)...
-- PMM