summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorstefan <stefan@openbsd.org>2016-03-15 18:16:21 +0000
committerstefan <stefan@openbsd.org>2016-03-15 18:16:21 +0000
commite419476636112bbc721796427dfd470cc7bb6a86 (patch)
treed3db3b556b71ee29cf853d7f00e570d09824d1b0 /lib/libc
parentnot compiled before commit (diff)
downloadwireguard-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