OSDN Git Service

ART: Fix reporting initialized classes by CompilerDriver.
authorVladimir Marko <vmarko@google.com>
Mon, 15 Jun 2015 17:52:54 +0000 (18:52 +0100)
committerVladimir Marko <vmarko@google.com>
Thu, 18 Jun 2015 14:20:17 +0000 (15:20 +0100)
commita8b41003a717ecf399b890c18e9b0df49f55472f
treeab2a83ac36bd902322e7948c0d67fe5073563c3d
parentf61ab97807441935cab89ebe6e24279e03d62bfe
ART: Fix reporting initialized classes by CompilerDriver.

Fix a bug where the CompilerDriver was erroneously reporting
classes as initialized during AOT compilation when they were
not guaranteed to be initialized at runtime.

This fix prevents the Quick compiler from inlining calls to
static methods in classes that are not guaranteed to be
initialized, so that the runtime performs the initialization
required for correctness.

Bug: 21847756

(cherry picked from commit 07785bb98dc8bbe192970e0f4c2cafd338a8dc68)

Change-Id: I60c7361cb6e8f51be20a3cbfcae19f3240bdfbed
compiler/driver/compiler_driver-inl.h
compiler/driver/compiler_driver.cc
compiler/driver/compiler_driver.h
runtime/oat.h