use region quarantine even if MAP_FIXED call fails

This is a more sensible way of handling an out-of-memory failure in this
edge case. It doesn't matter much in practice.
This commit is contained in:
Daniel Micay 2021-05-12 00:20:03 -04:00
parent 2335f56713
commit 5c974bdf82
2 changed files with 4 additions and 4 deletions

View file

@ -1008,7 +1008,7 @@ System calls used by all build configurations:
* `mremap(old, old_size, new_size, MREMAP_MAYMOVE|MREMAP_FIXED, new)`
* `munmap`
* `write(STDERR_FILENO, buf, len)` (before aborting due to memory corruption)
* `madvise(ptr, size, MADV_DONTNEED)` for `malloc_trim` with slab quarantines
* `madvise(ptr, size, MADV_DONTNEED)`
The main distinction from a typical malloc implementation is the use of
getrandom. A common compatibility issue is that existing system call whitelists