]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix massif --pages-as-heap=yes does not report peak caused by mmap+munmap
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 10 Dec 2015 22:37:59 +0000 (22:37 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 10 Dec 2015 22:37:59 +0000 (22:37 +0000)
commit58ba63b7df7a9fff5eb11a9503bbe6d36eb25b48
treeda609afb2a731d9d4efe629947399700de17969e
parent95bd519438f027821062bc411601799a07c1139a
Fix massif --pages-as-heap=yes does not report peak caused by mmap+munmap

ms_unrecord_page_mem was wrongly taking the (possible) peak snapshot
when unrecording the last block.
But the peak snapshot will be detected when unrecording the first block
of an munmap, not when unrecording the last block.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15745
NEWS
massif/ms_main.c
massif/tests/Makefile.am
massif/tests/mmapunmap.c [new file with mode: 0644]
massif/tests/mmapunmap.post.exp [new file with mode: 0644]
massif/tests/mmapunmap.stderr.exp [new file with mode: 0644]
massif/tests/mmapunmap.vgtest [new file with mode: 0644]