Commit 1d8374cb authored by simonmar's avatar simonmar
Browse files

[project @ 2002-11-05 09:26:04 by simonmar]

Wibble in "out of memory" error message (we actually get to see it
now, rather than "getMBlock: misaligned block...").
parent b3034110
/* -----------------------------------------------------------------------------
* $Id: MBlock.c,v 1.34 2002/10/27 21:46:27 wolfgang Exp $
* $Id: MBlock.c,v 1.35 2002/11/05 09:26:04 simonmar Exp $
*
* (c) The GHC Team 1998-1999
*
......@@ -184,8 +184,7 @@ getMBlocks(nat n)
if (ret == (void *)-1) {
if (errno == ENOMEM) {
belch("out of memory (requested %d bytes)", n * BLOCK_SIZE);
stg_exit(EXIT_FAILURE);
barf("out of memory (requested %d bytes)", n * MBLOCK_SIZE);
} else {
barf("getMBlock: mmap failed");
}
......
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