summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorstefan <stefan@openbsd.org>2016-03-15 18:16:47 +0000
committerstefan <stefan@openbsd.org>2016-03-15 18:16:47 +0000
commit5c7bcd7eaef67423bb4a9e46c9af663e1c2eb4b0 (patch)
tree4c7f969e66217f372271db951a2bbc63a8b19bfc /lib/libc/stdio
parentFor amaps with only a few slots, allocate the slots via pool(9) (diff)
downloadwireguard-openbsd-5c7bcd7eaef67423bb4a9e46c9af663e1c2eb4b0.tar.xz
wireguard-openbsd-5c7bcd7eaef67423bb4a9e46c9af663e1c2eb4b0.zip
Allocate amap slots for a virtual memory range reserved with sbrk lazily.
This avoids wasting kernel memory if the user process does not make use of the allocated memory. Testing by sthen@ and tobiasu@, thanks! ok deraadt@
Diffstat (limited to 'lib/libc/stdio')
0 files changed, 0 insertions, 0 deletions