diff options
author | 2016-03-15 18:16:47 +0000 | |
---|---|---|
committer | 2016-03-15 18:16:47 +0000 | |
commit | 5c7bcd7eaef67423bb4a9e46c9af663e1c2eb4b0 (patch) | |
tree | 4c7f969e66217f372271db951a2bbc63a8b19bfc /lib | |
parent | For amaps with only a few slots, allocate the slots via pool(9) (diff) | |
download | wireguard-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')
0 files changed, 0 insertions, 0 deletions