This is an archive of the discontinued LLVM Phabricator instance.

Implement __kmp_is_address_mapped() for NetBSD
ClosedPublic

Authored by krytarowski on Dec 11 2018, 1:12 AM.

Details

Summary

Use the sysctl(3) function to check whether an address is mapped
into the address space.

Diff Detail

Repository
rOMP OpenMP

Event Timeline

krytarowski created this revision.Dec 11 2018, 1:12 AM
mgorny accepted this revision.Dec 11 2018, 10:27 AM

LGTM. Tests pass for me.

runtime/src/z_Linux_util.cpp
2018

FTR: KMP_OS_FREEBSD is already handled above.

This revision is now accepted and ready to land.Dec 11 2018, 10:27 AM
This revision was automatically updated to reflect the committed changes.