summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2017-11-30 17:09:50 +0000
committerVladimir Marko <vmarko@google.com>2017-12-01 10:09:37 +0000
commit8bb72b6fe4a566692fbe57dbfd86c133a67f28fc (patch)
tree8ff66442eac5311f5845ee96436eceb02c14c43f /compiler/optimizing/graph_visualizer.cc
parentdc93cac66f1db225474cec5bf0350fd7a148085e (diff)
ART: Fix crash accessing .bss for non-executable oat file.
There are situations where we're running and JIT-compiling bytecode from a dex file tied to a non-executable oat file (i.e. its AOT-compiled code cannot be executed) and the JIT-compiled code can try to store the resolved class or string in its .bss section which has not been mmapped. Check whether the oat file is executable before doing the .bss store. Note that clearing the pointers to index bss mappings when loading the oat file as non-executable would also solve the problem. However, that would prevent oatdump from listing .bss entries. Test: No regression test provided, oat files are loaded as non-executable only in some odd situations that are very difficult to replicate in a test. Bug: 69928566 Change-Id: Ib91d22f6510dc0d7cc9abe8247f2743706aaa45e
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions