summaryrefslogtreecommitdiffstats
path: root/regress/lib/libc
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2014-09-26 09:25:38 +0000
committerkettenis <kettenis@openbsd.org>2014-09-26 09:25:38 +0000
commitb0c80555f551fcf34f655ea27b051ee100c8a70e (patch)
treecb84a735eb0a7e25e6a364c4f53dda85dab91175 /regress/lib/libc
parentnow that mp setperf is fixed, let's try aggressive throttling again. (diff)
downloadwireguard-openbsd-b0c80555f551fcf34f655ea27b051ee100c8a70e.tar.xz
wireguard-openbsd-b0c80555f551fcf34f655ea27b051ee100c8a70e.zip
Rework piglet and pig allocation. Currently the piglet gets allocated
deep down in the suspend path, where it is really hard to recover from allocation failure. So allocate the piglet early on in the suspend path. Also change the piglet and piglet allocation functions to use km_alloc(9) instead of doing pmemrange magic. This removes a bunch of code which, in the case of the piglet allocation, is broken since it results in a NULL pointer dereference. Also switch the piglet allocation to not wait. If we can't allocate 16MB of phys contig memory on a halfway modern machine we're almost certainly under a lot of memory pressure and we're better off not trying to hibernate anyway. ok mlarkin@
Diffstat (limited to 'regress/lib/libc')
0 files changed, 0 insertions, 0 deletions