| Summary: | Add mremap support for Solaris | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Jakub Kulik <kulikjak> |
| Component: | general | Assignee: | Paul Floyd <pjfloyd> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | pjfloyd |
| Priority: | NOR | ||
| Version First Reported In: | 3.21.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | mremap support for Solaris | ||
commit 03180d4403b2b6e849d0a311584ed8b1e6528158 Mixed up the last two patches in my git commits, above ID should be the right one |
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.