diff options
Diffstat (limited to 'runtime/interpreter/unstarted_runtime.cc')
| -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()) { |