diff options
author | Igor Murashkin <iam@google.com> | 2015-07-10 18:27:47 -0700 |
---|---|---|
committer | Igor Murashkin <iam@google.com> | 2015-07-17 17:38:46 -0700 |
commit | 7617abdb402fd0419daa3eefb2ad059ccbb8b6db (patch) | |
tree | 85ca02f6446cd50523156ea916d5524eaf3bf2dc /oatdump | |
parent | 479ebe076561e4a48129ab0c78cf8ca93c44baf6 (diff) | |
download | art-7617abdb402fd0419daa3eefb2ad059ccbb8b6db.tar.gz art-7617abdb402fd0419daa3eefb2ad059ccbb8b6db.tar.bz2 art-7617abdb402fd0419daa3eefb2ad059ccbb8b6db.zip |
runtime: Add -Xverify:softfail and ART_TEST_INTERPRETER_ACCESS_CHECKS
Use ART_TEST_INTERPRETER_ACCESS_CHECKS=true to run all the tests through
the interpreter with access checks enabled. The normal interpreter tests
do not currently enable access checks, which means that a large part of
the interpreter codebase is untested.
The verifier will force every class into a soft fail mode if
-Xverify:softfail is used, thereby ensuring that if used along with the
interpreter (-Xint) that the interpret is always in access checks mode.
This is used alongside with --compile-filter=verify-at-runtime to
prevent the AOT compiler from putting down any code.
Change-Id: I35a10ed8c43d76fa96133cf01fdad497da387200
Diffstat (limited to 'oatdump')
-rw-r--r-- | oatdump/oatdump.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc index e0d77086a7..93254547d7 100644 --- a/oatdump/oatdump.cc +++ b/oatdump/oatdump.cc @@ -1950,9 +1950,12 @@ class ImageDumper { } state->stats_.managed_code_bytes_ignoring_deduplication += quick_oat_code_size; + uint32_t method_access_flags = method->GetAccessFlags(); + indent_os << StringPrintf("OAT CODE: %p-%p\n", quick_oat_code_begin, quick_oat_code_end); - indent_os << StringPrintf("SIZE: Dex Instructions=%zd GC=%zd Mapping=%zd\n", - dex_instruction_bytes, gc_map_bytes, pc_mapping_table_bytes); + indent_os << StringPrintf("SIZE: Dex Instructions=%zd GC=%zd Mapping=%zd AccessFlags=0x%x\n", + dex_instruction_bytes, gc_map_bytes, pc_mapping_table_bytes, + method_access_flags); size_t total_size = dex_instruction_bytes + gc_map_bytes + pc_mapping_table_bytes + vmap_table_bytes + quick_oat_code_size + ArtMethod::ObjectSize(image_pointer_size); |