commit | 73d3d58dc234315214c0d73d6badd4fdc53cbeff | [log] [tgz] |
---|---|---|
author | Jason Evans <jasone@canonware.com> | Wed May 11 15:33:28 2016 -0700 |
committer | Jason Evans <jasone@canonware.com> | Wed May 11 15:38:06 2016 -0700 |
tree | 5e390c8a3bd933908ce543832ce949d3de6f4900 | |
parent | 7790a0ba403b02bcb8804534c8120d605b4dc5f4 [diff] |
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.