summaryrefslogtreecommitdiffstats
path: root/runtime/trace.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-07-09 18:00:50 -0700
committerIan Rogers <irogers@google.com>2014-07-09 18:00:50 -0700
commit8ab25ef11aed383bf7d3aa96e95f777972d1b58f (patch)
tree905b37556c225ab44e94f39292bbc558d7506376 /runtime/trace.h
parentbcb3b29095817ce8987d8310d4db87271f5114ad (diff)
downloadart-8ab25ef11aed383bf7d3aa96e95f777972d1b58f.zip
art-8ab25ef11aed383bf7d3aa96e95f777972d1b58f.tar.gz
art-8ab25ef11aed383bf7d3aa96e95f777972d1b58f.tar.bz2
Move another field away from android_atomic_cas.
Change-Id: If63aa2811e06ec401a601286a3bacb62a0da96ad
Diffstat (limited to 'runtime/trace.h')
-rw-r--r--runtime/trace.h3
1 files changed, 2 insertions, 1 deletions
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 <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_;