summaryrefslogtreecommitdiff
path: root/rts/posix
diff options
context:
space:
mode:
Diffstat (limited to 'rts/posix')
-rw-r--r--rts/posix/OSMem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index db388414d9..fff2f1e590 100644
--- a/rts/posix/OSMem.c
+++ b/rts/posix/OSMem.c
@@ -645,7 +645,9 @@ void osCommitMemory(void *at, W_ size)
{
void *r = my_mmap(at, size, MEM_COMMIT);
if (r == NULL) {
- barf("Unable to commit %" FMT_Word " bytes of memory", size);
+ errorBelch("Unable to commit %" FMT_Word " bytes of memory", size);
+ errorBelch("Exiting. The system might be out of memory.");
+ stg_exit(EXIT_FAILURE);
}
}