|
From: <sv...@va...> - 2005-09-20 17:42:52
|
Author: sewardj
Date: 2005-09-20 18:42:45 +0100 (Tue, 20 Sep 2005)
New Revision: 4705
Log:
When printing a log message that a new superblock has been allocated,
also show which arena it belongs to. From this observe many
allocations for VG_AR_EXECTXT and hence quadruple the minimum
allocation size for that arena.
Modified:
branches/ASPACEM/coregrind/m_mallocfree.c
Modified: branches/ASPACEM/coregrind/m_mallocfree.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/ASPACEM/coregrind/m_mallocfree.c 2005-09-20 17:24:19 UTC (re=
v 4704)
+++ branches/ASPACEM/coregrind/m_mallocfree.c 2005-09-20 17:42:45 UTC (re=
v 4705)
@@ -476,7 +476,7 @@
arena_init ( VG_AR_TOOL, "tool", 4, 1048=
576 );
arena_init ( VG_AR_SYMTAB, "symtab", 4, 1048=
576 );
arena_init ( VG_AR_DEMANGLE, "demangle", 4, 65=
536 );
- arena_init ( VG_AR_EXECTXT, "exectxt", 4, 65=
536 );
+ arena_init ( VG_AR_EXECTXT, "exectxt", 4, 262=
144 );
arena_init ( VG_AR_ERRORS, "errors", 4, 65=
536 );
nonclient_inited =3D True;
}
@@ -567,9 +567,9 @@
sb->n_payload_bytes =3D cszB - sizeof(Superblock);
a->bytes_mmaped +=3D cszB;
VG_(debugLog)(1, "mallocfree",
- "newSuperblock at %p, for %s, %lld payload bytes\n",=
=20
- sb, a->clientmem ? "CLIENT" : "VALGRIND",
- (Long)sb->n_payload_bytes);
+ "newSuperblock at %p (pszB %7lld) owner %s/%s\n",=20
+ sb, (Long)sb->n_payload_bytes,=20
+ a->clientmem ? "CLIENT" : "VALGRIND", a->name );
return sb;
}
=20
|