summaryrefslogtreecommitdiffstats
path: root/runtime/base/bounded_fifo.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2013-11-19 18:00:50 -0800
committerIan Rogers <irogers@google.com>2013-12-20 08:01:57 -0800
commitb122a4bbed34ab22b4c1541ee25e5cf22f12a926 (patch)
tree624f16271f4481a8fd5aa2f607385f490dc7b3ae /runtime/base/bounded_fifo.h
parente40687d053b89c495b6fbeb7a766b01c9c7e039c (diff)
downloadart-b122a4bbed34ab22b4c1541ee25e5cf22f12a926.tar.gz
art-b122a4bbed34ab22b4c1541ee25e5cf22f12a926.tar.bz2
art-b122a4bbed34ab22b4c1541ee25e5cf22f12a926.zip
Tidy up memory barriers.
Change-Id: I937ea93e6df1835ecfe2d4bb7d84c24fe7fc097b
Diffstat (limited to 'runtime/base/bounded_fifo.h')
-rw-r--r--runtime/base/bounded_fifo.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/base/bounded_fifo.h b/runtime/base/bounded_fifo.h
index cb92d40995..d04840aa23 100644
--- a/runtime/base/bounded_fifo.h
+++ b/runtime/base/bounded_fifo.h
@@ -17,9 +17,6 @@
#ifndef ART_RUNTIME_BASE_BOUNDED_FIFO_H_
#define ART_RUNTIME_BASE_BOUNDED_FIFO_H_
-#include "cutils/atomic.h"
-#include "cutils/atomic-inline.h"
-
namespace art {
// A bounded fifo is a fifo which has a bounded size. The power of two version uses a bit mask to
@@ -49,7 +46,7 @@ class BoundedFifoPowerOfTwo {
void push_back(const T& value) {
++size_;
DCHECK_LE(size_, MaxSize);
- // Relies on integer overflow behaviour.
+ // Relies on integer overflow behavior.
data_[back_index_++ & mask_] = value;
}