defer munmap to after unlocking malloc. this can (unfortunately) be an
authortedu <tedu@openbsd.org>
Mon, 27 Jun 2016 15:33:40 +0000 (15:33 +0000)
committertedu <tedu@openbsd.org>
Mon, 27 Jun 2016 15:33:40 +0000 (15:33 +0000)
commitadc10d31b68e6fa7430ddcd9520a278c0f21b502
treee67cd6660234953cc561967ce62955af27719760
parent1fa431a8b479c262351c501027e83d3595e49c3c
defer munmap to after unlocking malloc. this can (unfortunately) be an
expensive syscall, and we don't want to tie up other threads. there's no
need to hold the lock, so defer it to afterwards.
from Michael McConville
ok deraadt
lib/libc/stdlib/malloc.c