|
From: <sv...@va...> - 2009-04-14 23:43:26
|
Author: njn
Date: 2009-04-15 00:43:15 +0100 (Wed, 15 Apr 2009)
New Revision: 9530
Log:
Merge r9529 (better memalign abort message) from the DARWIN branch.
Modified:
trunk/coregrind/m_mallocfree.c
Modified: trunk/coregrind/m_mallocfree.c
===================================================================
--- trunk/coregrind/m_mallocfree.c 2009-04-14 23:39:00 UTC (rev 9529)
+++ trunk/coregrind/m_mallocfree.c 2009-04-14 23:43:15 UTC (rev 9530)
@@ -1588,8 +1588,10 @@
if (req_alignB < VG_MIN_MALLOC_SZB
|| req_alignB > 1048576
|| VG_(log2)( req_alignB ) == -1 /* not a power of 2 */) {
- VG_(printf)("VG_(arena_memalign)(%p, %lu, %lu)\nbad alignment",
- a, req_alignB, req_pszB );
+ VG_(printf)("VG_(arena_memalign)(%p, %lu, %lu)\n"
+ "bad alignment value %lu\n"
+ "(it is too small, too big, or not a power of two)",
+ a, req_alignB, req_pszB, req_alignB );
VG_(core_panic)("VG_(arena_memalign)");
/*NOTREACHED*/
}
|