
#8189: Default to infinite stack size? -------------------------------+------------------------------------------- Reporter: nh2 | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Runtime | Version: 7.6.3 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 hour) Unknown/Multiple | Blocked By: Type of failure: Runtime | Related Tickets: crash | Test Case: | Blocking: | -------------------------------+------------------------------------------- Comment (by nh2): Replying to [comment:18 simonmar]:
We could just set the default maximum stack size to be some sensible fraction of real memory?
As sane as this sounds, it doesn't go well with unix philosophies (memory is to be treated as unlimited until allocation fails and memory/swap should be transparent to the user) and in practice (VMs need not report the actually available memory as physical memory, fast swap becomes useless). I think having this for the stack though is still much better than a default heap limit or the minimal heap limit we have had so far. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8189#comment:20 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler