Memory Barrier

David Naylor naylor.b.david at gmail.com
Fri Nov 25 15:25:40 UTC 2016


Hi

Is there anyway to implement a memory barrier in FreeBSD without using 
mprotect(2) [1].  Unfortunately, the mprotect(2) method uses mlock(2) and 
mlock(2) does not always work, depending on load and permissions.  

I see there was a proposal on a Linux mailing list for a new syscall to 
implement this functionality [2] but FreeBSD 11.0 does not appear to have it.  

Regards

[1] 
https://github.com/dotnet/coreclr/blob/master/src/pal/src/thread/process.cpp#L2886
https://github.com/dotnet/coreclr/blob/master/src/pal/src/thread/process.cpp#L2929
[2] https://lkml.org/lkml/2015/7/10/766
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20161125/2bd7e507/attachment.sig>


More information about the freebsd-questions mailing list