From 8ab25ef11aed383bf7d3aa96e95f777972d1b58f Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Wed, 9 Jul 2014 18:00:50 -0700 Subject: Move another field away from android_atomic_cas. Change-Id: If63aa2811e06ec401a601286a3bacb62a0da96ad --- runtime/trace.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/trace.h') diff --git a/runtime/trace.h b/runtime/trace.h index 3f5d80a..9c8d35b 100644 --- a/runtime/trace.h +++ b/runtime/trace.h @@ -23,6 +23,7 @@ #include #include +#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_; -- cgit v1.1