From 9ab3e5d9194312d6c625ebb9c7614a46e9a25804 Mon Sep 17 00:00:00 2001 From: Noah Eisen Date: Tue, 28 Nov 2017 16:33:50 -0800 Subject: [PATCH] Fix tracer TSAN bug --- src/core/lib/debug/trace.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/lib/debug/trace.cc b/src/core/lib/debug/trace.cc index 4c63983bdce..338ef3343d5 100644 --- a/src/core/lib/debug/trace.cc +++ b/src/core/lib/debug/trace.cc @@ -76,7 +76,8 @@ void TraceFlagList::LogAllTracers() { // Flags register themselves on the list during construction TraceFlag::TraceFlag(bool default_enabled, const char* name) - : name_(name), value_(default_enabled) { + : name_(name) { + set_enabled(default_enabled); TraceFlagList::Add(this); }