diff options
| author | Jason Evans <jasone@canonware.com> | 2016-05-11 22:33:28 (GMT) |
|---|---|---|
| committer | Jason Evans <jasone@canonware.com> | 2016-05-11 22:38:06 (GMT) |
| commit | 73d3d58dc234315214c0d73d6badd4fdc53cbeff (patch) | |
| tree | 5e390c8a3bd933908ce543832ce949d3de6f4900 /src/jemalloc_cpp.cpp | |
| parent | 7790a0ba403b02bcb8804534c8120d605b4dc5f4 (diff) | |
| download | jemalloc-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
