[#] http://marc.info/?l=openbsd-cvs&m=140837252922741&w=2
openbsd-cvs(obsdave,2) — All
2014-08-18 18:55:09


Module name: src
Changes by: tedu@cvs.openbsd.org 2014/08/18 08:34:58

Modified files:
lib/libc/stdlib: malloc.c

Log message:
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.