summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2018-03-05 01:15:24 +0000
committerderaadt <deraadt@openbsd.org>2018-03-05 01:15:24 +0000
commitea0d1f1fdbdc98dc215aafd8869e67812566a636 (patch)
tree830a43be0860b73bfa49906b270a50193c6425bd /lib/libc/stdlib/malloc.c
parentAdd if (D_VENDOR) check to last SUN_CYLCHECK block lacking it. (diff)
downloadwireguard-openbsd-ea0d1f1fdbdc98dc215aafd8869e67812566a636.tar.xz
wireguard-openbsd-ea0d1f1fdbdc98dc215aafd8869e67812566a636.zip
#define _MAX_PAGE_SHIFT in MD _types.h as the maximum pagesize an arch
needs (looking at you sgi, but others required this before). This is for the circumstances we need pagesize known at compile time, not getpagesize() runtime. Use it for malloc storage sizes, for shm, and to set pthread stack default sizes. The stack sizes were a mess, and pushing them towards page-aligned is healthy move (which will also be needed by the coming stack register checker) ok guenther kettenis, discussion with stefan
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions