diff options
author | Chris Larsen <chris.larsen@imgtec.com> | 2017-07-06 12:39:10 -0700 |
---|---|---|
committer | Chris Larsen <chris.larsen@imgtec.com> | 2017-07-06 12:58:17 -0700 |
commit | c9658049f924d2faf1e39246d300ca03db8278b6 (patch) | |
tree | 32d5366affd9671802d91371cb4f3451c1474463 /compiler/optimizing/codegen_test_utils.h | |
parent | 0656044bf8b1d5053cdea6615f4d0aebad5b64b8 (diff) |
Eliminate false negatives from ART 141-class-unload test.
This test looks for memory mappings of the 141-class-unload
class file. In previous versions of Android these mappings
appeared as lines in the file /proc/<pid>/maps which contained
the string "@141-class-unload-ex.jar". Android now uses a
different encoding for these mappings. Memory mappings of the
141-class-unload class file now contain either the string
"141-class-unload-ex.odex", or the string
"141-class-unload-ex.vdex". The test has been updated to now
search for mappings which contain either of these strings.
To see what entries exist in /proc/<pid>/maps file run the ART
test 141-class-unload under the control of the debugger, and set
a breakpoint for Heap::CollectGarbageInternal(). When the
breakpoint is triggered run "adb shell" in a different terminal
window and run the command
"grep 141-class-unload-ex /proc/<pid>/maps".
Test: ./run-test --gdb --debuggable --no-optimize --always-clean 141
This test was run against the emulators for aosp_arm-eng,
aosp_arm64-eng, aosp_mips-eng, aosp_mips64-eng, aosp_x86-eng,
and aosp_x86_64-eng.
Change-Id: Iadf8dc9cb9cc6884d82ff9993c13d24369c4955c
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions