summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex/Main.java
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2017-05-17 13:14:10 -0700
committerMathieu Chartier <mathieuc@google.com>2017-05-18 09:57:37 -0700
commit73c2a562f8a3d8aa6a57efba2f999791eef404f2 (patch)
tree0259f28311d17a4b2b094959930f264d61e3f184 /test/ProfileTestMultiDex/Main.java
parent95cf1719669f914d086c9e394289b54f75cc48cf (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 (cherry picked from commit 39100372d5131b3327e5af076a949da9eb6f7a33) Change-Id: I1b8350638ce0a0486b2672100e582dc3a049b0fd
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions