#1791: heap overflow should generate an exception
-----------------------------+----------------------------------------------
Reporter: guest | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 6.8 branch
Component: Runtime System | Version: 6.8
Severity: blocker | Resolution:
Keywords: | Difficulty: Unknown
Testcase: outofmem2 | Architecture: Unknown
Os: Unknown |
-----------------------------+----------------------------------------------
Changes (by simonmar):
* status: reopened => new
* owner: igloo =>
* type: bug => feature request
* summary: -M option does not work => heap overflow should generate an
exception
Comment:
Correct - heap overflow doesn't currently generate an exception. It's
something we should really do, but it isn't completely clear how to do it.
For example, in order to run the exception handler, you need some heap
space. So perhaps you want a "soft" and a "hard" limit on heap space, and
to get an exception when the "soft" limit is reached.
Another question is: which thread(s) should get the exception?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1791#comment:5>
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