This is an archive of the discontinued LLVM Phabricator instance.

[Msan] Fix use of mmap(MAP_ANONYMOUS) in the unit tests on FreeBSD
ClosedPublic

Authored by kutuzov.viktor.84 on Jan 12 2015, 9:46 AM.

Details

Summary

On FreeBSD the 'fd' parameter is required to be (-1) when the MAP_ANONYMOUS flag is specified. Linux ignores that parameter in such cases.

Diff Detail

Repository
rL LLVM

Event Timeline

kutuzov.viktor.84 retitled this revision from to [Msan] Fix use of mmap(MAP_ANONYMOUS) in the unit tests on FreeBSD.
kutuzov.viktor.84 updated this object.
kutuzov.viktor.84 edited the test plan for this revision. (Show Details)
kutuzov.viktor.84 added a subscriber: Unknown Object (MLST).
samsonov accepted this revision.Jan 12 2015, 11:23 AM
samsonov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jan 12 2015, 11:23 AM
This revision was automatically updated to reflect the committed changes.