diff options
author | Hans Boehm <hboehm@google.com> | 2018-12-05 11:11:33 -0800 |
---|---|---|
committer | Hans Boehm <hboehm@google.com> | 2019-01-28 09:37:57 -0800 |
commit | 206348cea8b086a484b8bde37b2e281e5f7db638 (patch) | |
tree | 1e83b6484dbd9218ace7c94d266dc90ed7e66505 /runtime/oat_file.h | |
parent | 58a268aa3569d8ad4f0e831de578620e1079ed59 (diff) | |
download | art-206348cea8b086a484b8bde37b2e281e5f7db638.tar.gz art-206348cea8b086a484b8bde37b2e281e5f7db638.tar.bz2 art-206348cea8b086a484b8bde37b2e281e5f7db638.zip |
Selectively allow dead reference elimination
Allow dead reference elimination in methods not containing
@ReachabilitySensitive accesses or calls, when the class is marked
@DeadReferenceSafe.
Add 1339-dead-reference-safe to aggressively check that everything
works as intended.
Bug: 111453875
Test: art/test/testrunner/testrunner.py --host --64 -t 1339-dead-reference-safe
Detect ReachabilitySensitive annotations.
Change-Id: I70c20431fdbcfcfd2692b2255d12ad59e37cb669
Diffstat (limited to 'runtime/oat_file.h')
-rw-r--r-- | runtime/oat_file.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/oat_file.h b/runtime/oat_file.h index 3e9c01f9c2..1ba6e49ab8 100644 --- a/runtime/oat_file.h +++ b/runtime/oat_file.h @@ -502,6 +502,9 @@ class OatDexFile final { return dex_file_pointer_; } + ArrayRef<const uint8_t> GetQuickenedInfoOf(const DexFile& dex_file, + uint32_t dex_method_idx) const; + // Looks up a class definition by its class descriptor. Hash must be // ComputeModifiedUtf8Hash(descriptor). static const dex::ClassDef* FindClassDef(const DexFile& dex_file, |