From b38dcbd46c8cdd7d074e54c86fc36e3405aa5260 Mon Sep 17 00:00:00 2001 From: sof Date: Fri, 12 Apr 2002 04:00:35 +0000 Subject: [PATCH] [project @ 2002-04-12 04:00:35 by sof] getMBlocks(): if we run into a ENOMEM situation, report blocks requested --- ghc/rts/MBlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); } -- 1.7.10.4