diff options
author | tedu <> | 2014-08-18 14:34:58 +0000 |
---|---|---|
committer | tedu <> | 2014-08-18 14:34:58 +0000 |
commit | a904076a7b693c8512f298bacec36b1e7e3ff538 (patch) | |
tree | 77af9b4c96ac96aed4cb4137da8f8db2e3eb3cee /src/lib/libcrypto/sha/sha256.c | |
parent | cd072a630de628b8b117efa93c814542270d5ebe (diff) | |
download | openbsd-a904076a7b693c8512f298bacec36b1e7e3ff538.tar.gz openbsd-a904076a7b693c8512f298bacec36b1e7e3ff538.tar.bz2 openbsd-a904076a7b693c8512f298bacec36b1e7e3ff538.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 'src/lib/libcrypto/sha/sha256.c')
0 files changed, 0 insertions, 0 deletions