diff options
author | Andreas Gampe <agampe@google.com> | 2015-03-09 12:57:41 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-03-12 16:09:38 -0700 |
commit | dd9d055ddfe4bd66fcf58fde4e8066670acce011 (patch) | |
tree | a88253b45ce6c9292ab6dfab16452fa7c1b4c8fb /runtime/mirror | |
parent | 510abc71bd8a5ba42079a851783aba31036c54ea (diff) | |
download | art-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.h | 4 |
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_); } |