Using mmap(2) with a hint address

Ganael LAPLANCHE ganael.laplanche at martymac.org
Tue Dec 20 16:12:07 UTC 2011


On Tue, 20 Dec 2011 17:03:03 +0200, Andriy Gapon wrote

> Just a guess - this might be some sort of optimization to keep 
> virtual address range of dynamic allocations untouched by 
> unrelated mmap calls.  Not sure if that's so and how useful 
> could that be. svn log / svn annotate of the file may reveal 
> more details.

Mmmhh.... It seems that this part of the code is quite old and was
already present in the BSD 4.4 Lite kernel (not exactly in the same
shape, but with the same idea). Quite confusing...

--
Ganael LAPLANCHE <ganael.laplanche at martymac.org>
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac <martymac at FreeBSD.org>, http://www.FreeBSD.org


More information about the freebsd-stable mailing list