[GHC] #16065: Stack squeezing during context switches makes for non-determinism in allocations
GHC
ghc-devs at haskell.org
Fri Dec 21 10:16:20 UTC 2018
#16065: Stack squeezing during context switches makes for non-determinism in
allocations
-------------------------------------+-------------------------------------
Reporter: sgraf | Owner: (none)
Type: task | Status: new
Priority: normal | Milestone: ⊥
Component: Runtime System | Version: 8.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #4450, #8861 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonmar):
I think we want to leave stack squeezing as it is. How would you make it
deterministic? Just saying "only squeeze if we're about to switch to a
different thread" would just move the problem to concurrent programs.
`+RTS -V0` is a solution that works for both single-threaded and
concurrent programs, because it forces the context switches to happen at
deterministic times.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16065#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list