Throw an exception on heap overflow
authorDemi Obenour <demiobenour@gmail.com>
Tue, 10 Jan 2017 18:33:31 +0000 (13:33 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 10 Jan 2017 18:33:38 +0000 (13:33 -0500)
commit12ad4d417b89462ba8e19a3c7772a931b3a93f0e
tree97b5c7e3ba6329ecf99e7431c10d43ee66758d1b
parente8d74321b5b24afcb4230510fd6e4c4ecf6f3e19
Throw an exception on heap overflow

This changes heap overflow to throw a HeapOverflow exception instead of
killing the process.

Test Plan: GHC CI

Reviewers: simonmar, austin, hvr, erikd, bgamari

Reviewed By: simonmar, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2790

GHC Trac Issues: #1791
17 files changed:
docs/users_guide/8.2.1-notes.rst
docs/users_guide/runtime_control.rst
includes/rts/Flags.h
libraries/base/GHC/IO/Exception.hs
libraries/base/GHC/TopHandler.hs
rts/RtsFlags.c
rts/RtsStartup.c
rts/RtsSymbols.c
rts/Schedule.c
rts/TopHandler.c [new file with mode: 0644]
rts/TopHandler.h [new file with mode: 0644]
testsuite/tests/rts/T1791/Makefile [new file with mode: 0644]
testsuite/tests/rts/T1791/T1791.hs [new file with mode: 0644]
testsuite/tests/rts/T1791/T1791.stderr [new file with mode: 0644]
testsuite/tests/rts/T1791/T1791.stdout [new file with mode: 0644]
testsuite/tests/rts/T1791/all.T [new file with mode: 0644]
testsuite/tests/rts/T5644/T5644.stdout [new file with mode: 0644]