summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2018-01-31 03:09:56 -0800
committerMathieu Chartier <mathieuc@google.com>2018-01-31 04:07:42 -0800
commitf160983d93e14bdb56d6fc0cd4d501b1fa2f4c61 (patch)
tree1ffab0ce344a4f531a8642684a92d89e06b922a4 /compiler/optimizing/graph_visualizer.cc
parentc7e546ff3963a1d51b1f100d308db735bd19f736 (diff)
Fix compact dex shared section with update_input_vdex
For update input vdex, the shared data section is empty in the oat writer. This was causing an error by not correctly updating the vdex_size_ to be after the shared data section. Since the offset was not update to be after the section, vdex and quickening data would overwrite the shared data and it would get truncated. Usually this would manifest as a crash in dequickening or reading the dex file map list. This CL fixes the oat writer to verify and skip the shared data section when update_input_vdex is true. Test coverage is provided by re-enabling compact dex for the cases where update_input_vdex is false. Bug: 72608794 Bug: 63756964 Test: test-art-host Change-Id: Ic1f64804231386fabf5847bd8be8783841d29eaa
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions