diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2015-02-13 17:39:03 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2015-02-13 17:39:03 +0000 |
commit | 8a9d23bf5349a121903aaf3c3096da07da9c3b00 (patch) | |
tree | b640d2f0195895547cc2a937a9e9a11bee69bf63 /lldb/scripts/Python/python-wrapper.swig | |
parent | ebfe815f5ca29dfd196af9077156b51bdbd01660 (diff) | |
download | llvm-8a9d23bf5349a121903aaf3c3096da07da9c3b00.zip llvm-8a9d23bf5349a121903aaf3c3096da07da9c3b00.tar.gz llvm-8a9d23bf5349a121903aaf3c3096da07da9c3b00.tar.bz2 |
tsan: don't initialize trace header in release mode
We are going to use only a small part of the trace with the default
value of history_size. However, the constructor writes to the whole trace.
It writes mostly zeros, so freshly mmaped memory will do.
The only non-zero field if mutex type used for debugging.
Reduces per-goroutine overhead by 8K.
https://code.google.com/p/thread-sanitizer/issues/detail?id=89
llvm-svn: 229127
Diffstat (limited to 'lldb/scripts/Python/python-wrapper.swig')
0 files changed, 0 insertions, 0 deletions