[GHC] #8189: Default to infinite stack size?

GHC ghc-devs at haskell.org
Fri Sep 13 05:40:49 CEST 2013


#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 bgamari):

 I have another branch up at https://github.com/bgamari/ghc/compare/bump-
 stack-limit.

 In this branch I,

  * Introduce `getPhysicalMemorySize` to `rts/posix/` and `rts/win32`. Only
 the posix variant has been tested.
  * Fix `RtsUtils.c:stackOverflow` to print the actual stack size instead
 of the stack size limit. This requires a patch in `base`
 https://github.com/bgamari/packages-base/compare/infinite-stack
  * Allow RTS to take `-K 0` to disable the stack size limit. This is a
 hold-over from the last set and should arguably be dropped.
  * Set the default stack size limit to 80% of physical memory
  * Update the user guide appropriately

 Let me know how this looks. It would be great to get this in for 7.8.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8189#comment:21>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list