diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-09-22 22:36:21 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-09-22 22:36:21 +0000 |
commit | 4365a0449cc7cba181357669774caf835f2ef9dd (patch) | |
tree | e1c6f0217c6714d6b602a163f1a828a8651e225c /lib/asan/asan_report.cc | |
parent | 9b376627e371c9d879a8ba4d38aaa0638c9f0d58 (diff) | |
download | compiler-rt-4365a0449cc7cba181357669774caf835f2ef9dd.tar.gz |
[sanitizer] Replace thread id with GetThreadSelf
This allows to avoid constructor parameter
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@314040 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_report.cc')
-rw-r--r-- | lib/asan/asan_report.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/asan/asan_report.cc b/lib/asan/asan_report.cc index 9536ead66..cda93f3e6 100644 --- a/lib/asan/asan_report.cc +++ b/lib/asan/asan_report.cc @@ -122,12 +122,8 @@ bool ParseFrameDescription(const char *frame_descr, // immediately after printing error report. class ScopedInErrorReport { public: - static const u32 kUnclaimedTid = 0xfffffe; - static_assert(kUnclaimedTid != kInvalidTid, "Must be different"); - explicit ScopedInErrorReport(bool fatal = false) - : error_report_lock_(GetCurrentTidOrInvalid()), - halt_on_error_(fatal || flags()->halt_on_error) { + : halt_on_error_(fatal || flags()->halt_on_error) { // Make sure the registry and sanitizer report mutexes are locked while // we're printing an error report. // We can lock them only here to avoid self-deadlock in case of |