Created attachment 163544 [details] mremap support for Solaris Oracle Solaris SRU 45 (May 2022) introduced a new mremap syscall that behaves the same as on Linux. The attached patch adds support for it; without it, Valgrind fails to build when mremap is available with: m_aspacemgr/aspacemgr-common.c:234:6: error: #error Unknown OS 234 | # error Unknown OS | To be sure, I ran `build` and `test` on illumos/OpenIndiana (which doesn't have mremap syscall) and found no issues with this patch.
commit 03180d4403b2b6e849d0a311584ed8b1e6528158 Mixed up the last two patches in my git commits, above ID should be the right one