[PATCH] D116366: [Support] Add MemoryBuffer::dontNeedIfMmap

Zibi Sarbino via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 31 10:26:35 PST 2021


zibi added a comment.

In D116366#3215212 <https://reviews.llvm.org/D116366#3215212>, @aganea wrote:

> @zibi @daltenty Is `madvise` not available on AIX, or is it a specific version of the OS that doesn't have it? The doc suggests it is available: https://www.ibm.com/docs/en/aix/7.1?topic=m-madvise-subroutine
> Is that specific machine missing a header? Perhaps `HAVE_SYS_MMAN_H` isn't defined? @simon_tatham
>
> Unless any of you have a way to quickly test a solution, short term should we just `#ifndef _AIX` the call to `madvise`?

@daltenty, I guess the bots are not on 7.1, right?  
FYI, we will have to take the same route on z/OS as Windows did since either `madvise`  nor `posix_madvise`  is available.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116366/new/

https://reviews.llvm.org/D116366



More information about the llvm-commits mailing list