The MAP_NORESERVE define has been removed in FreeBSD 11.x, and even
before that, it was never implemented. Just define it to zero instead,
so compiler-rt can compile on FreeBSD 11 and later.
Details
Details
- Reviewers
kcc samsonov kutuzov.viktor.84 - Commits
- rG349e06269535: [Sanitizers] The MAP_NORESERVE define has been removed in FreeBSD 11.x, and…
rCRT228871: [Sanitizers] The MAP_NORESERVE define has been removed in FreeBSD 11.x,
rL228871: [Sanitizers] The MAP_NORESERVE define has been removed in FreeBSD 11.x,
Diff Detail
Diff Detail
Event Timeline
Comment Actions
How does this all work then?
We need MAP_NORESERVE on Linux to map 20Tb for the asan process.
What's different on FreeBSD?
Comment Actions
The MAP_NORESERVE and MAP_RENAME flags were retired here: https://reviews.freebsd.org/rS273250
Apparently they were never implemented on FreeBSD, at least not with Linux semantics. As far as I understand, FreeBSD doesn't have the functionality of signalling the affected process, instead of blocking for a page.