summaryrefslogtreecommitdiffstats
path: root/runtime/gc/accounting/space_bitmap.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2013-09-23 11:49:36 -0700
committerMathieu Chartier <mathieuc@google.com>2013-09-25 13:55:02 -0700
commit11409ae81a3eaf84d7fd2b3c85b8b06d2bae27f0 (patch)
treea6f10a6360c4ed8012e5893264e68ac4869fde90 /runtime/gc/accounting/space_bitmap.h
parentb605a4f9a8797046ea1aa05f3405a77fb9a80a76 (diff)
downloadart-11409ae81a3eaf84d7fd2b3c85b8b06d2bae27f0.zip
art-11409ae81a3eaf84d7fd2b3c85b8b06d2bae27f0.tar.gz
art-11409ae81a3eaf84d7fd2b3c85b8b06d2bae27f0.tar.bz2
Refactor and improve mod-union tables.
Allow support for adding more mod union tables, reduces the amount of baked in logic. Adds support for updating mod union table references from compaction (not for ReferenceCache table yet). Change-Id: I1beeda00839ed86ef0e853beff5ce10d0ab2b9d1
Diffstat (limited to 'runtime/gc/accounting/space_bitmap.h')
-rw-r--r--runtime/gc/accounting/space_bitmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/gc/accounting/space_bitmap.h b/runtime/gc/accounting/space_bitmap.h
index f975692..4cf8872 100644
--- a/runtime/gc/accounting/space_bitmap.h
+++ b/runtime/gc/accounting/space_bitmap.h
@@ -247,8 +247,8 @@ class SpaceSetMap {
template <typename Visitor>
void Visit(const Visitor& visitor) NO_THREAD_SAFETY_ANALYSIS {
- for (Objects::iterator it = contained_.begin(); it != contained_.end(); ++it) {
- visitor(*it);
+ for (const mirror::Object* obj : contained_) {
+ visitor(const_cast<mirror::Object*>(obj));
}
}