OSDN Git Service

ART: Slightly change InitializeClass flow
authorAndreas Gampe <agampe@google.com>
Thu, 21 Apr 2016 19:21:55 +0000 (12:21 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 22 Apr 2016 18:38:21 +0000 (11:38 -0700)
commit53954b9ae06a6f140917b530e1df10bbddc8425f
treea219e2b377ab4abc3e1bb3a402041aa6b11ac8a3
parent4f4a6c47ef269c68bc136f0805e5e99512d970b7
ART: Slightly change InitializeClass flow

Since 884f3b83ed6b2a378535ac6b2be57d6b2e22de09, verification isn't
run completely under a class' lock. This means it is possible to
race from unverified to initialized in InitializeClass. So check
the class state after VerifyClass, and handle new success and
failure cases.

Bug: 28254258

(cherry picked from commit fc49fa05c51a26ba1b185401cdba95cea1b67b39)

Change-Id: I22a6121477e409987281bc81c28b6c942f1bd319
runtime/class_linker.cc