summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-06-14 11:20:22 +0000
committerkib <kib@FreeBSD.org>2012-06-14 11:20:22 +0000
commit0e0ae1797174c083bfec06fb3c064ddc5998ee4d (patch)
tree03bfaa9fc1a867b0b9876e8f9377b0178a768155 /Makefile
parent181a5cf0b01c09910480cec151eddd788b21a108 (diff)
downloadFreeBSD-src-0e0ae1797174c083bfec06fb3c064ddc5998ee4d.zip
FreeBSD-src-0e0ae1797174c083bfec06fb3c064ddc5998ee4d.tar.gz
Eliminate the static buffer used to read the first page of the mapped
object, and eliminate the pread(2) call as well [1]. Mmap the first page of the object temporaly, and unmap it on error or last use. Potentially, this leaves one-page gap between succeeding dlopen(3), but there are other mmap(2) consumers as well. Fix several cases were the whole mapping of the object leaked on error. Use MAP_PREFAULT_READ for mmap(2) calls which map real object pages [2]. Insipired by the patch by: Ian Lepore <freebsd damnhippie dyndns org> [1] Suggested by: alc [2] MFC after: 2 weeks
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud