diff options
Diffstat (limited to 'runtime/gc/collector/concurrent_copying.cc')
-rw-r--r-- | runtime/gc/collector/concurrent_copying.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/runtime/gc/collector/concurrent_copying.cc b/runtime/gc/collector/concurrent_copying.cc index 734c9351d5..057eed187f 100644 --- a/runtime/gc/collector/concurrent_copying.cc +++ b/runtime/gc/collector/concurrent_copying.cc @@ -484,14 +484,6 @@ inline mirror::Object* ConcurrentCopying::GetFwdPtr(mirror::Object* from_ref) { } } -inline void ConcurrentCopying::SetFwdPtr(mirror::Object* from_ref, mirror::Object* to_ref) { - DCHECK(region_space_->IsInFromSpace(from_ref)); - DCHECK(region_space_->IsInToSpace(to_ref) || heap_->GetNonMovingSpace()->HasAddress(to_ref)); - LockWord lw = from_ref->GetLockWord(false); - DCHECK_NE(lw.GetState(), LockWord::kForwardingAddress); - from_ref->SetLockWord(LockWord::FromForwardingAddress(reinterpret_cast<size_t>(to_ref)), false); -} - // The following visitors are that used to verify that there's no // references to the from-space left after marking. class ConcurrentCopyingVerifyNoFromSpaceRefsVisitor { |