Created attachment 125143 [details] patch Amend the recent update to VG_(getrlimit) and VG_(setrlimit) [get|set]rlimit system calls are becoming deprecated. Coregrind should use prlimit64 as the first candidate in order to achieve "rlimit" functionality. There are also systems that do not even support older "rlimits". Modify the previously added support VG_(getrlimit) and VG_(setrlimit) using __NR_prlimit64 by making it similar to the glibc implementation. This change has been tested on x86 and mips and we would like feedback on how it behaves on other architectures/systems.
Did anyone have a chance to take a look at this in the meantime?
Anyone against this patch?
This looks correct. Whenever possible we should use prlimit64.
Committed. https://sourceware.org/git/?p=valgrind.git;a=commit;h=09f4f2f8fd9cdecb994e74df8b938108a01120f7