diff options
| author | 2017-12-14 18:36:05 -0800 | |
|---|---|---|
| committer | 2017-12-14 18:49:20 -0800 | |
| commit | 2af7a3e6572254b733fa3d3699ddcf27ebc93866 (patch) | |
| tree | b3fa9d598066c2186f78cba415f99d9cae169486 | |
| parent | ed416f76ae679d92f0bc648581de2684ff93e29a (diff) | |
Log object info for CAS failure
Log extra info to see if the whole object is corrupted or just the
lock word.
Bug: 70146596
Test: test-art-host
Change-Id: I165bed0b85053282878aadb3d961683a217f4019
| -rw-r--r-- | runtime/gc/collector/concurrent_copying.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/gc/collector/concurrent_copying.cc b/runtime/gc/collector/concurrent_copying.cc index 7beff960cc..70685bcbf7 100644 --- a/runtime/gc/collector/concurrent_copying.cc +++ b/runtime/gc/collector/concurrent_copying.cc @@ -760,7 +760,8 @@ class ConcurrentCopying::ImmuneSpaceScanObjVisitor { // Done scanning the object, go back to white. bool success = obj->AtomicSetReadBarrierState(ReadBarrier::GrayState(), ReadBarrier::WhiteState()); - CHECK(success); + CHECK(success) + << Runtime::Current()->GetHeap()->GetVerification()->DumpObjectInfo(obj, "failed CAS"); } } else { collector_->ScanImmuneObject(obj); |