From: Nicholas Nethercote Date: Sat, 10 Jul 2004 16:17:52 +0000 (+0000) Subject: Change allocation failure message which is no longer true thanks to FV. X-Git-Tag: svn/VALGRIND_2_1_2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7ca8c07f34111d1f3b78e9937fa69a5ac0e43c9;p=thirdparty%2Fvalgrind.git Change allocation failure message which is no longer true thanks to FV. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2465 --- diff --git a/coregrind/vg_mylibc.c b/coregrind/vg_mylibc.c index 80edd6ab2a..e243bbb2aa 100644 --- a/coregrind/vg_mylibc.c +++ b/coregrind/vg_mylibc.c @@ -1708,15 +1708,8 @@ void* VG_(get_memory_from_mmap) ( Int nBytes, Char* who ) VG_(printf)("VG_(get_memory_from_mmap): %d bytes already allocated.\n", tot_alloc); VG_(printf)("\n"); - VG_(printf)("This may mean that you have run out of swap space,\n"); - VG_(printf)("since running programs on valgrind increases their memory\n"); - VG_(printf)("usage at least 3 times. You might want to use 'top'\n"); - VG_(printf)("to determine whether you really have run out of swap.\n"); - VG_(printf)("If so, you may be able to work around it by adding a\n"); - VG_(printf)("temporary swap file -- this is easier than finding a\n"); - VG_(printf)("new swap partition. Go ask your sysadmin(s) [politely!]\n"); - VG_(printf)("\n"); - VG_(printf)("VG_(get_memory_from_mmap): out of memory! Fatal! Bye!\n"); + VG_(printf)("Sorry. You could try using a tool that uses less memory;\n"); + VG_(printf)("eg. addrcheck instead of memcheck.\n"); VG_(printf)("\n"); VG_(exit)(1); }