summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha256.c
diff options
context:
space:
mode:
authortedu <>2014-08-18 14:34:58 +0000
committertedu <>2014-08-18 14:34:58 +0000
commita904076a7b693c8512f298bacec36b1e7e3ff538 (patch)
tree77af9b4c96ac96aed4cb4137da8f8db2e3eb3cee /src/lib/libcrypto/sha/sha256.c
parentcd072a630de628b8b117efa93c814542270d5ebe (diff)
downloadopenbsd-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