[all-commits] [llvm/llvm-project] b66b32: [Support] Use posix_madvise() if available

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Feb 16 00:36:58 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b66b3247f598448aab50d8ae67729dd2312f3067
      https://github.com/llvm/llvm-project/commit/b66b3247f598448aab50d8ae67729dd2312f3067
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-16 (Wed, 16 Feb 2022)

  Changed paths:
    M llvm/lib/Support/Unix/Path.inc

  Log Message:
  -----------
  [Support] Use posix_madvise() if available

This is a followup to D119695 using the suggestion by joerg. Rather
than manually declaring madvise() on __sun__, this uses
posix_madvise() if available, which does get declared properly on
Illumos.

Differential Revision: https://reviews.llvm.org/D119856




More information about the All-commits mailing list