From dfcd6f4f9bcbceb065ccb7e51da249afffd41ab2 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Tue, 13 Sep 2016 10:02:48 -0700 Subject: [PATCH] Add more logging for checking in to-space for CC copy Trying to debug occasionally failing CHECK. Bug: 31423258 Test: test-art-host CC baker Change-Id: I00963eb4f529811090e485184bb48a28287e77d3 --- runtime/gc/collector/concurrent_copying.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/gc/collector/concurrent_copying.cc b/runtime/gc/collector/concurrent_copying.cc index 975ac364d..e534369ff 100644 --- a/runtime/gc/collector/concurrent_copying.cc +++ b/runtime/gc/collector/concurrent_copying.cc @@ -2087,7 +2087,8 @@ mirror::Object* ConcurrentCopying::Copy(mirror::Object* from_ref) { to_ref = reinterpret_cast(old_lock_word.ForwardingAddress()); CHECK(to_ref != nullptr); CHECK_NE(to_ref, lost_fwd_ptr); - CHECK(region_space_->IsInToSpace(to_ref) || heap_->non_moving_space_->HasAddress(to_ref)); + CHECK(region_space_->IsInToSpace(to_ref) || heap_->non_moving_space_->HasAddress(to_ref)) + << "to_ref=" << to_ref << " " << heap_->DumpSpaces(); CHECK_NE(to_ref->GetLockWord(false).GetState(), LockWord::kForwardingAddress); return to_ref; } -- 2.11.0