summaryrefslogtreecommitdiff
path: root/runtime/class_table-inl.h
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-10-19 19:54:44 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-10-19 19:54:44 +0000
commit28a15a922e172f96018ab2a1e94ea1cfeb9b7b95 (patch)
tree9f15ab6328ea212e74afe9c4285bcf2b140eca0e /runtime/class_table-inl.h
parentf69f56e7d4a1e31dfce2a77558c9b7047f82092b (diff)
parent00310e0bb4ee541b99f0b687dbf5f706db2aabca (diff)
Merge "Keep dex files live in class table"
Diffstat (limited to 'runtime/class_table-inl.h')
-rw-r--r--runtime/class_table-inl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/class_table-inl.h b/runtime/class_table-inl.h
index dc60a2c239..aef02b6d5d 100644
--- a/runtime/class_table-inl.h
+++ b/runtime/class_table-inl.h
@@ -37,6 +37,9 @@ void ClassTable::VisitRoots(const Visitor& visitor) {
visitor.VisitRoot(root.AddressWithoutBarrier());
}
}
+ for (GcRoot<mirror::Object>& root : dex_files_) {
+ visitor.VisitRoot(root.AddressWithoutBarrier());
+ }
}
} // namespace art