diff options
author | 2016-10-22 13:25:43 +0000 | |
---|---|---|
committer | 2016-10-22 13:25:43 +0000 | |
commit | f22361397e8c20ada0eb564d66f2df66cf35d9dc (patch) | |
tree | a3ad2c6aeb0909f0a343e07686bd76cc7bffb781 | |
parent | 776e473ec7ff0dd426a648ae7f996f3b69fd6925 (diff) | |
parent | ec32b91cfa1061b2608838d41e6d7d70fdf681dc (diff) |
Merge "Remove read barrier in UnstartedUnsafeCompareAndSwapLong."
-rw-r--r-- | runtime/interpreter/unstarted_runtime.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/runtime/interpreter/unstarted_runtime.cc b/runtime/interpreter/unstarted_runtime.cc index 25ce5cc4e4..5a62bd77d5 100644 --- a/runtime/interpreter/unstarted_runtime.cc +++ b/runtime/interpreter/unstarted_runtime.cc @@ -1238,19 +1238,6 @@ void UnstartedRuntime::UnstartedUnsafeCompareAndSwapLong( int64_t offset = shadow_frame->GetVRegLong(arg_offset + 2); int64_t expectedValue = shadow_frame->GetVRegLong(arg_offset + 4); int64_t newValue = shadow_frame->GetVRegLong(arg_offset + 6); - - // Must use non transactional mode. - if (kUseReadBarrier) { - // Need to make sure the reference stored in the field is a to-space one before attempting the - // CAS or the CAS could fail incorrectly. - mirror::HeapReference<mirror::Object>* field_addr = - reinterpret_cast<mirror::HeapReference<mirror::Object>*>( - reinterpret_cast<uint8_t*>(obj) + static_cast<size_t>(offset)); - ReadBarrier::Barrier<mirror::Object, kWithReadBarrier, /*kAlwaysUpdateField*/true>( - obj, - MemberOffset(offset), - field_addr); - } bool success; // Check whether we're in a transaction, call accordingly. if (Runtime::Current()->IsActiveTransaction()) { |