Page MenuHomeFreeBSD

mlock_test: use mmap/munmap for unmapped pointer
AcceptedPublic

Authored by brooks on Fri, Oct 4, 11:31 PM.

Details

Reviewers
ngie
Summary

Instead of hoping that the page after sbrk(0) is unmapped, map a page
with mmap and then munmap it. This won't work with CheriABI, but it's
an easy fix for now.

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 59773
Build 56659: arc lint + arc unit