fix 298943  massif asserts with --pages-as-heap=yes when brk is changing by value different of page size

* add a massif test to (somewhat) validate --pages-as-heap=yes
  with calls to brk not being a multiple of a page size

* fix the assert:
   only record new pages or unrecord old pages if at least one new
   full page (or one full old page) is added/removed.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12548 a5019735-40e9-0310-863c-91ae7b9d1cf9
6 files changed