summaryrefslogtreecommitdiffstats
path: root/src/jemalloc_cpp.cpp
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-05-11 22:33:28 (GMT)
committerJason Evans <jasone@canonware.com>2016-05-11 22:38:06 (GMT)
commit73d3d58dc234315214c0d73d6badd4fdc53cbeff (patch)
tree5e390c8a3bd933908ce543832ce949d3de6f4900 /src/jemalloc_cpp.cpp
parent7790a0ba403b02bcb8804534c8120d605b4dc5f4 (diff)
downloadjemalloc-73d3d58dc234315214c0d73d6badd4fdc53cbeff.zip
jemalloc-73d3d58dc234315214c0d73d6badd4fdc53cbeff.tar.gz
jemalloc-73d3d58dc234315214c0d73d6badd4fdc53cbeff.tar.bz2
Optimize witness fast path.
Short-circuit commonly called witness functions so that they only execute in debug builds, and remove equivalent guards from mutex functions. This avoids pointless code execution in witness_assert_lockless(), which is typically called twice per allocation/deallocation function invocation. Inline commonly called witness functions so that optimized builds can completely remove calls as dead code.
Diffstat (limited to 'src/jemalloc_cpp.cpp')
0 files changed, 0 insertions, 0 deletions