|
From: Nicholas N. <nj...@ca...> - 2004-07-10 16:01:58
|
CVS commit by nethercote:
Don't force tool redzones to be multiples of 8.
M +2 -2 coregrind/vg_default.c 1.22
M +1 -2 coregrind/vg_malloc2.c 1.26
M +1 -1 helgrind/hg_main.c 1.79
--- valgrind/coregrind/vg_default.c #1.21:1.22
@@ -67,7 +67,7 @@ void malloc_panic ( const Char* fn )
/*------------------------------------------------------------*/
-/* Default redzone for CLIENT arena of Valgrind's malloc() is 4 bytes */
+/* Default redzone size for CLIENT arena of Valgrind's malloc() */
__attribute__ ((weak))
-UInt VG_(vg_malloc_redzone_szB) = 4;
+UInt VG_(vg_malloc_redzone_szB) = 8;
Bool VG_(sk_malloc_called_by_scheduler) = False;
--- valgrind/coregrind/vg_malloc2.c #1.25:1.26
@@ -252,5 +252,5 @@ void ensure_mm_init ( void )
if (init_done) return;
- /* Use a checked red zone size of 1 word for our internal stuff,
+ /* Use checked red zones (of various sizes) for our internal stuff,
and an unchecked zone of arbitrary size for the client. Of
course the client's red zone can be checked by the tool, eg.
@@ -271,5 +271,4 @@ void ensure_mm_init ( void )
sk_assert(VG_(vg_malloc_redzone_szB) >= 0);
client_rz_szW = VG_(vg_malloc_redzone_szB)/4;
- if (client_rz_szW % 2 == 1) client_rz_szW++;
arena_init ( &vg_arena[VG_AR_CLIENT], "client",
--- valgrind/helgrind/hg_main.c #1.78:1.79
@@ -1809,5 +1809,5 @@ static HG_Chunk *freechunks[N_FREED_CHUN
/* Use a small redzone (paranoia) */
-UInt VG_(vg_malloc_redzone_szB) = 4;
+UInt VG_(vg_malloc_redzone_szB) = 8;
|