mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-12 14:20:04 +00:00
The function is used in VG_(client_syscall) to avoid extending the stack when it is clear that the current value of the stack pointer does not point into a segment that looks like a stack segment. See the comments in the code there. As a side effect of this we can now revert r15018 which increased the stack size of the alternate stack in memcheck/tests/sigaltstack.c. The reason is that the belief at the time: "alternate stack is too small" was not correct. What instead happened was that VG_(client_syscall) called VG_(extend_stack) without need (the syscall was tgkill) and the new stack pointer happened to be in a file segment. In other words: the current stack pointer was still within the alternate stack, i.e. the alternate stack was (barely) large enough. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15034
1.3 KiB
1.3 KiB