From: sof Date: Fri, 12 Apr 2002 04:00:35 +0000 (+0000) Subject: [project @ 2002-04-12 04:00:35 by sof] X-Git-Tag: Approx_11550_changesets_converted~2156 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=b38dcbd46c8cdd7d074e54c86fc36e3405aa5260;p=ghc-hetmet.git [project @ 2002-04-12 04:00:35 by sof] getMBlocks(): if we run into a ENOMEM situation, report blocks requested --- diff --git a/ghc/rts/MBlock.c b/ghc/rts/MBlock.c index bd30756..7bb39d7 100644 --- a/ghc/rts/MBlock.c +++ b/ghc/rts/MBlock.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: MBlock.c,v 1.27 2002/03/26 23:56:45 sof Exp $ + * $Id: MBlock.c,v 1.28 2002/04/12 04:00:35 sof Exp $ * * (c) The GHC Team 1998-1999 * @@ -76,7 +76,7 @@ getMBlocks(nat n) if (ret == (void *)-1) { if (errno == ENOMEM) { - barf("getMBlock: out of memory"); + barf("getMBlock: out of memory (blocks requested: %d)", n); } else { barf("GetMBlock: mmap failed"); }