DARWIN sync: make VG_MIN_MALLOC_SZB 16 bytes where appropriate. Add another

output for massif/tests/one to account for it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10066
This commit is contained in:
Nicholas Nethercote 2009-05-21 03:36:21 +00:00
parent b56f41367a
commit 790fbdfa1a
3 changed files with 52 additions and 2 deletions

View File

@ -69,7 +69,18 @@ typedef Int ArenaId;
// This is both the minimum payload size of a malloc'd block, and its
// minimum alignment. Must be a power of 2 greater than 4, and should be
// greater than 8.
#define VG_MIN_MALLOC_SZB 8
#if defined(VGP_x86_linux) || \
defined(VGP_ppc32_linux) || \
defined(VGP_ppc32_aix5)
# define VG_MIN_MALLOC_SZB 8
#elif defined(VGP_amd64_linux) || \
defined(VGP_ppc64_linux) || \
defined(VGP_ppc64_aix5)
# define VG_MIN_MALLOC_SZB 16
#else
# error Unknown platform
#endif
/* This struct definition MUST match the system one. */
/* SVID2/XPG mallinfo structure */

View File

@ -25,7 +25,7 @@ EXTRA_DIST = $(noinst_SCRIPTS) \
new-cpp.post.exp new-cpp.stderr.exp new-cpp.vgtest \
no-stack-no-heap.post.exp no-stack-no-heap.stderr.exp no-stack-no-heap.vgtest \
null.post.exp null.stderr.exp null.vgtest \
one.post.exp one.stderr.exp one.vgtest \
one.post.exp one.post.exp2 one.stderr.exp one.vgtest \
overloaded-new.post.exp overloaded-new.stderr.exp overloaded-new.vgtest \
peak.post.exp peak.stderr.exp peak.vgtest \
peak2.post.exp peak2.stderr.exp peak2.vgtest \

View File

@ -0,0 +1,39 @@
--------------------------------------------------------------------------------
Command: ./one
Massif arguments: --stacks=no --time-unit=B --heap-admin=0 --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element
ms_print arguments: massif.out
--------------------------------------------------------------------------------
B
16^ :
| :
| :
| :
| :
| :
| :
| :
| :
| :
| :
| :
| :
| :
| :
| :
| :
| :
| :
| :
0 +----------------------------------------------------------------------->B
0 16
Number of snapshots: 2
Detailed snapshots: []
--------------------------------------------------------------------------------
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
0 0 0 0 0 0
1 16 16 1 15 0