summaryrefslogtreecommitdiffstats
path: root/runtime/mirror
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-03-09 12:57:41 -0700
committerAndreas Gampe <agampe@google.com>2015-03-12 16:09:38 -0700
commitdd9d055ddfe4bd66fcf58fde4e8066670acce011 (patch)
treea88253b45ce6c9292ab6dfab16452fa7c1b4c8fb /runtime/mirror
parent510abc71bd8a5ba42079a851783aba31036c54ea (diff)
downloadart-dd9d055ddfe4bd66fcf58fde4e8066670acce011.tar.gz
art-dd9d055ddfe4bd66fcf58fde4e8066670acce011.tar.bz2
art-dd9d055ddfe4bd66fcf58fde4e8066670acce011.zip
ART: More cutouts for unstarted runtime
Dex objects keep byte buffers to mapped dex files. For annotation access we create them when compiling, but they must be cleared before writing an image. Add some Memory functions. Bug: 19542228 Change-Id: I995791b43f2b09192d88645821d9e55b45f1b606
Diffstat (limited to 'runtime/mirror')
-rw-r--r--runtime/mirror/dex_cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/mirror/dex_cache.h b/runtime/mirror/dex_cache.h
index 3c947ab37b..c548c03e63 100644
--- a/runtime/mirror/dex_cache.h
+++ b/runtime/mirror/dex_cache.h
@@ -59,6 +59,10 @@ class MANAGED DexCache FINAL : public Object {
return GetFieldObject<String>(OFFSET_OF_OBJECT_MEMBER(DexCache, location_));
}
+ static MemberOffset DexOffset() {
+ return OFFSET_OF_OBJECT_MEMBER(DexCache, dex_);
+ }
+
static MemberOffset StringsOffset() {
return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_);
}