summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2017-05-17 13:14:10 -0700
committerMathieu Chartier <mathieuc@google.com>2017-05-17 22:25:29 -0700
commit39100372d5131b3327e5af076a949da9eb6f7a33 (patch)
treed4d81a5b38920c7fc1a79d49d8b1c9015f79d8e4 /compiler/optimizing/loop_optimization.cc
parent7974468d32b817be1d49dfcf513605f646c481bc (diff)
Use GC critical section for profile saver
Since visit classes uses DecodeWeakGlobal, it may block on decoding weak globals. This can cause deadlocks since it will be blocked while holding the classlinker classes lock. Using a GC critical section ensures that the GC is not running while we visit the classes for the profile saver. I didn't put the logic in the VisitClasses call since some of the callers already have no thread suspension checks that would fail from this. Bug: 38350590 Test: test-art-host ART_TEST_JIT=true Change-Id: I1a529c4ec6b53c1979390741afc767d09a1faae0
Diffstat (limited to 'compiler/optimizing/loop_optimization.cc')
0 files changed, 0 insertions, 0 deletions