llvm with tablegen backend for capstone disassembler
Go to file
Pavel Labath f5aaa999b9 Fix remaining threading issues in Log.h
Summary:
This fixes two threading issues in the logging code. The access to the
mask and options flags had data races when we were trying to
enable/disable logging while another thread was writing to the log.
Since we can log from almost any context, and we want it to be fast, so
I avoided locking primitives and used atomic variables instead. I have
also removed the (unused) setters for the mask and flags to make sure
that the only way to set them is through the enable/disable channel
functions.

I also add tests, which when run under tsan, verify that the use cases
like "doing an LLDB_LOGV while another thread disables logging" are
data-race-free.

Reviewers: zturner, clayborg

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D30702

llvm-svn: 297368
2017-03-09 10:16:07 +00:00
clang Remove a useless subsitution in doxygen2rst which was incorrectly replacing * by \* 2017-03-09 06:41:08 +00:00
clang-tools-extra [clang-tidy] Update the doc according to r297311. 2017-03-09 09:15:16 +00:00
compiler-rt Use correct function signature for strerror_r interceptor 2017-03-08 22:51:03 +00:00
debuginfo-tests
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx Disable unsigned integer sanitizer for basic_string::replace(). Patch from tomcherry@google.com 2017-03-09 01:54:13 +00:00
libcxxabi Fully Reformat fallback_malloc.cpp 2017-03-04 03:23:15 +00:00
libunwind Fix up the places where AddressSpace.hpp is included. 2017-03-09 08:04:07 +00:00
lld [ELF] - Implemented -znotext 2017-03-09 08:48:34 +00:00
lldb Fix remaining threading issues in Log.h 2017-03-09 10:16:07 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm [SSP] In opt remarks, stream Function directly 2017-03-09 06:10:27 +00:00
openmp Fix GNU strerror_r check for Android. 2017-03-07 22:18:05 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [DeadCodeElim] Put -polly-dce-precise-steps into the Polly category. 2017-03-08 23:25:35 +00:00