mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-07 04:38:00 +00:00
segment to be moved up to stage2's brk segment. Instead, Valgrind's use of brk is simulated with mmap. In order to prevent any unwanted use of the process brk segment, it also sets the RLIMIT_DATA to 0, which will make brk always fail. glibc's malloc will use mmap to allocate if brk fails. We try to intercept glibc's brk, but malloc seems to always use the library-internal version. (The client's use of brk has always been simulated, and is unaffected by this change.) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2266