This is an archive of the discontinued LLVM Phabricator instance.

[Support] Use posix_madvise() if available
ClosedPublic

Authored by nikic on Feb 15 2022, 9:17 AM.

Details

Summary

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.

Diff Detail

Event Timeline

nikic created this revision.Feb 15 2022, 9:17 AM
nikic requested review of this revision.Feb 15 2022, 9:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 15 2022, 9:17 AM
MaskRay accepted this revision.Feb 15 2022, 9:18 AM

Looks great!

This revision is now accepted and ready to land.Feb 15 2022, 9:18 AM
This revision was landed with ongoing or failed builds.Feb 16 2022, 12:36 AM
This revision was automatically updated to reflect the committed changes.