diff options
author | 2016-03-15 18:16:21 +0000 | |
---|---|---|
committer | 2016-03-15 18:16:21 +0000 | |
commit | e419476636112bbc721796427dfd470cc7bb6a86 (patch) | |
tree | d3db3b556b71ee29cf853d7f00e570d09824d1b0 /lib/libc | |
parent | not compiled before commit (diff) | |
download | wireguard-openbsd-e419476636112bbc721796427dfd470cc7bb6a86.tar.xz wireguard-openbsd-e419476636112bbc721796427dfd470cc7bb6a86.zip |
For amaps with only a few slots, allocate the slots via pool(9)
This saves some memory compared to using malloc, because there's
no roundup to the next bucket size. And it reduces kmem pressure
at least for some architectures (e.g. amd64).
Testing by sthen@ and tobiasu@, thanks!
ok sthen@ deraadt@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions