summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorgrange <grange@openbsd.org>2004-02-19 21:16:21 +0000
committergrange <grange@openbsd.org>2004-02-19 21:16:21 +0000
commitd5cda420f7e3a3c33e976a4849f1dbe3d94b3eb6 (patch)
tree27a7939c108870674d8862e8e7c43e2502b7a2d7 /lib/libc/stdlib/malloc.c
parentswitch to new license.template (diff)
downloadwireguard-openbsd-d5cda420f7e3a3c33e976a4849f1dbe3d94b3eb6.tar.xz
wireguard-openbsd-d5cda420f7e3a3c33e976a4849f1dbe3d94b3eb6.zip
wdc logs fixes from costa@:
1) wdc_get_log is at splbio() to prevent interrupt handlers from updating the log 2) work hard to ensure that wdc_tail and wdc_head are between 0 and wdc_log_cap, even if wdc_log or wdc_get_log is run concurrently against itself. With this patch, running concurrent wdc_log's may corrupt the log, but it should not cause any panics. 3) Make sure the buffer always starts on a record boundary. Otherwise said, wdc_tail should always be on a record boundary.
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions