diff options
Diffstat (limited to 'runtime/trace.h')
| -rw-r--r-- | runtime/trace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/trace.h b/runtime/trace.h index 3f5d80a4bf..9c8d35bb93 100644 --- a/runtime/trace.h +++ b/runtime/trace.h @@ -23,6 +23,7 @@ #include <string> #include <vector> +#include "atomic.h" #include "base/macros.h" #include "globals.h" #include "instrumentation.h" @@ -166,7 +167,7 @@ class Trace FINAL : public instrumentation::InstrumentationListener { const uint64_t start_time_; // Offset into buf_. - volatile int32_t cur_offset_; + AtomicInteger cur_offset_; // Did we overflow the buffer recording traces? bool overflow_; |