OSDN Git Service

Rewrite retrieval of resolved classes.
authorVladimir Marko <vmarko@google.com>
Tue, 24 Jan 2017 18:06:55 +0000 (18:06 +0000)
committerVladimir Marko <vmarko@google.com>
Tue, 24 Jan 2017 22:39:55 +0000 (22:39 +0000)
commit21300536fec3e9fcf8b436fdb09767b03c8cf945
treee319512f74c0e43bec9046a55865174270e06a68
parentcc92b213c1931a68b1317471b0e8fd12a98e96b0
Rewrite retrieval of resolved classes.

Use ClassLinker::VisitClasses() instead of walking over dex
cache type arrays. The old technique relies on the dex cache
holding references to all resolved classes, an assumption
that we're going to break soon.

Test: m test-art-host-run-test-595-profile-saving
Bug: 30627598
Change-Id: Icae71f53b5a33ff931d83aa8d44cc182889f26da
runtime/class_linker.cc
runtime/dex_cache_resolved_classes.h