commit | 0732d59d42523b8c2d807de3a380d2fbfa781364 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Wed Nov 06 11:02:50 2013 -0800 |
committer | Mathieu Chartier <mathieuc@google.com> | Wed Nov 06 11:15:42 2013 -0800 |
tree | 17b6bd9883bc52765e6a814271251b8fe56ac3df | |
parent | 01a52c75ff92b24195b7f3455db80a0e02d50f9f [diff] [blame] |
Improve object clone performance and make compaction proof. Bug: 11551604 Bug: 8981901 Change-Id: I60646d838dbb51e125303d1a8fe869191aa63e78
diff --git a/runtime/gc/heap.h b/runtime/gc/heap.h index 7d2441b..91909e4 100644 --- a/runtime/gc/heap.h +++ b/runtime/gc/heap.h
@@ -300,6 +300,10 @@ card_table_->MarkCard(dst); } + void WriteBarrierEveryFieldOf(const mirror::Object* obj) { + card_table_->MarkCard(obj); + } + accounting::CardTable* GetCardTable() const { return card_table_.get(); }