Fixed installation time regression when compile.
Fixed the installation time regression problems happens at compilation
time caused by the recursive initialization which blocked the fast-fail
test for classes that can't be initialized during installation.
Solved by ruling out this situation. Check for app image before
resolving the dependencies, fall back to ordinary initialize process
if profile does not exist.
Bug: 62296843
Test: test-art-host -j64
Change-Id: I773406f11fd5dced8da5f0fe228b45d95eca936b
1 file changed