rts: Throw proper HeapOverflow exception on allocating large array
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 26 Sep 2017 19:09:13 +0000 (15:09 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 26 Sep 2017 21:40:03 +0000 (17:40 -0400)
commit30a1eeea37e224e4ade9b8e7cdd30076cb716960
treea686de6c4aa4b1dbb9622b1af0ba5b699d79fe49
parent018c40fb1bb27853d0cefa5b90a44ce13e91a856
rts: Throw proper HeapOverflow exception on allocating large array

Test Plan: Validate, add tests

Reviewers: simonmar, austin, erikd

Reviewed By: simonmar

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D4021
includes/rts/storage/GC.h
rts/PrimOps.cmm
rts/sm/Storage.c