summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2019-05-22 18:45:07 +0000
committerclaudio <claudio@openbsd.org>2019-05-22 18:45:07 +0000
commitb3baa55526ff4445e1a11dd6b15659967ec97f3a (patch)
tree04d6b4c489aebd12671dd8d0bd206cf0f337ac2d /lib/libc/stdlib/malloc.c
parentre-order to reported states based on order of significance: (diff)
downloadwireguard-openbsd-b3baa55526ff4445e1a11dd6b15659967ec97f3a.tar.xz
wireguard-openbsd-b3baa55526ff4445e1a11dd6b15659967ec97f3a.zip
Read and assign the integer value only once. With this sysctl_int() will
do word loads and stores and so partial updates should no longer be observed. With this accessing global variables set by sysctl_int() should be mostly MP save. OK dlg@ mpi@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions