#1791: heap overflow should generate an exception
-----------------------------+----------------------------------------------
Reporter: guest | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 6.10 branch
Component: Runtime System | Version: 6.8
Severity: blocker | Resolution:
Keywords: | Difficulty: Unknown
Testcase: outofmem2 | Architecture: Unknown
Os: Unknown |
-----------------------------+----------------------------------------------
Comment (by demetrix):
Replying to [comment:5 simonmar]:
> Another question is: which thread(s) should get the exception?
Why not the thread currently executing IO action which failed to allocate
memory? Such behaviour would be the same as in almost any other
programming language. Perhaps the only potential problem here is when
additional threads are spawned not explicitely with forkIO or forkOS but
rather implicitely with `par` - maybe in that case the thread which forces
the evaluation of the "parallel" value should get the exception?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1791#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs