summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2018-01-08 10:26:17 -0800
committerAlex Light <allight@google.com>2018-01-08 21:59:52 +0000
commite44ee0c3d073e00e88f3a29f2a42129c3eba84e7 (patch)
tree65180639908c568845a2dd7402fa9c935df2cbeb /compiler/optimizing/graph_visualizer.cc
parent812d4d4091b07c83a340e775325b7f42c8521574 (diff)
Do not abort if we fail to allocate a thread-peer on shutdown
We were aborting if we failed to allocate the "Shutdown thread" a java-peer. This can sometimes happen if there is very constrained memory during shutdown for some reason. Since the thread-peer is only observable in very rare situations (and the runtime is shutting down anyway) we will instead simply continue without it. We also change a test that was hitting this situation to handle not having a thread peer. Bug: 71623806 Test: while ./test/run-test --host \ --prebuild \ --compact-dex-level none \ --optimizing \ --no-relocate \ --runtime-option -Xcheck:jni \ --pic-test \ --64 \ --build-with-javac-dx \ 004-ThreadStress; do; done Test: ./test.py --host -j50 Change-Id: Ib159d03e9f4b0e4d5b1b071d4b85e94620679bb0
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions