From c7df66e2cb124d261cf3b0691a09a3b6e357b6f1 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Wed, 15 Apr 2015 15:40:18 -0700 Subject: Remove transitive dependency on . Bug: 20262261 Change-Id: Ic6c2ed76e692fc09100b917e00ee9b73621ec8f0 --- runtime/gc/collector/mark_sweep.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/gc') diff --git a/runtime/gc/collector/mark_sweep.cc b/runtime/gc/collector/mark_sweep.cc index bb8d876..b3938cc 100644 --- a/runtime/gc/collector/mark_sweep.cc +++ b/runtime/gc/collector/mark_sweep.cc @@ -16,6 +16,7 @@ #include "mark_sweep.h" +#include #include #include #include @@ -600,7 +601,7 @@ class MarkStackTask : public Task { mirror::Object* ref = obj->GetFieldObject(offset); if (ref != nullptr && mark_sweep_->MarkObjectParallel(ref)) { if (kUseFinger) { - android_memory_barrier(); + std::atomic_thread_fence(std::memory_order_seq_cst); if (reinterpret_cast(ref) >= static_cast(mark_sweep_->atomic_finger_.LoadRelaxed())) { return; -- cgit v1.1