Commit ae1c48c6 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

rts/posix: Fail with HEAPOVERFLOW when out of memory during mmap

Test Plan: Validate

Reviewers: simonmar, austin

Subscribers: thomie

Differential Revision:

GHC Trac Issues: #11300
parent 3b6a4909
......@@ -222,7 +222,7 @@ my_mmap_or_barf (void *addr, W_ size, int operation)
// If we request more than 3Gig, then we get EINVAL
// instead of ENOMEM (at least on Linux).
errorBelch("out of memory (requested %" FMT_Word " bytes)", size);
} else {
barf("getMBlock: mmap: %s", strerror(errno));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment