]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Add inner requests in VEX
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 27 Jul 2017 19:10:30 +0000 (19:10 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 27 Jul 2017 19:10:30 +0000 (19:10 +0000)
commita10216bdde433fd19346c94fba2c8e054d3dd56f
tree152ee3bb2b35930710fe7d4e5c8f7577702f4a29
parentcfae6fb69d8c8dc4125dcad33fbddcc27ca7fc11
Add inner requests in VEX

When running Valgrind under Valgrind, the VEX memory allocation
(temporary or permanent) was not checked, as there was no
inner request.
This patch changes VEX to mark the temporary and permanent
allocations with redzone, and memory is marked unaddressable
when the VEX temporary pool is cleared.

The changes are:
* add a file libvex_inner.h which mostly takes over what
  was in pub_core_inner.h (which now just includes libvex_inner.h)

* modify main_util.h and main_util.c to mark the temporary
  and permanent pool with memcheck pool requests to indicate
  when a block is allocated or freed.

* Impact is (should be) none, unless Valgrind is configured
  as an inner.

* Outer memcheck/inner regression tests run on gcc20 (amd64).
  Nothing (more worrying than the 3.13 self hosting) detected

git-svn-id: svn://svn.valgrind.org/vex/trunk@3399
VEX/priv/main_util.c
VEX/priv/main_util.h
VEX/pub/libvex_inner.h [new file with mode: 0644]