Skip to content
  • Richard Henderson's avatar
    linux-user: Use RLIMIT_STACK for default stack size. · 703e0e89
    Richard Henderson authored
    
    
    The current default stack limit of 512kB is far too small; a fair
    number of gcc testsuite failures (for all guests) are directly
    attributable to this.  Using the -s option in every invocation of
    the emulator is annoying to say the least.
    
    A reasonable compromise seems to be to honor the system rlimit.
    At least on two Linux distributions, this is set to 8MB and 10MB
    respectively.  If the system does not limit the stack, then we're
    no worse off than before.
    
    At the same time, rename the variable from x86_stack_size and
    change the ultimate fallback size from 512kB to 8MB.
    
    Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
    Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
    703e0e89