summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_macro.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-08-18 14:34:58 +0000
committertedu <tedu@openbsd.org>2014-08-18 14:34:58 +0000
commitba7eaa689d6a2079340c4102ea47d1cf4da316c1 (patch)
tree32998eef306cb8237db7c8cc29897e749a73e4f0 /usr.bin/mandoc/man_macro.c
parentthis uses pools, but relied on mbuf.h to provide them. (diff)
downloadwireguard-openbsd-ba7eaa689d6a2079340c4102ea47d1cf4da316c1.tar.xz
wireguard-openbsd-ba7eaa689d6a2079340c4102ea47d1cf4da316c1.zip
a small tweak to improve malloc in multithreaded programs. we don't need
to hold the malloc lock across mmap syscalls in all cases. dropping it allows another thread to access the existing chunk cache if necessary. could be improved to be a bit more aggressive, but i've been testing this simple diff for some time now with good results.
Diffstat (limited to 'usr.bin/mandoc/man_macro.c')
0 files changed, 0 insertions, 0 deletions