OSDN Git Service

Don't call EnsureInitialized in the JIT.
authorNicolas Geoffray <ngeoffray@google.com>
Wed, 7 Jun 2017 13:09:43 +0000 (14:09 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Wed, 7 Jun 2017 15:56:38 +0000 (16:56 +0100)
commiteccc74ed594576816d4521aad1974ddfa54cd6ac
tree1db1d294dbf2663add9f86e37469b8b0a6ea2a38
parentcdbd252ab528ac29f45403bf099c79ae2c3bde00
Don't call EnsureInitialized in the JIT.

Calling EnsureInitialized can block due to locking on the class
object, that an application can also do.

Just rely that the compilation request is for a reason.

The compiler aleady knows how to compile methods of classes that
are not initialized.

bug: 62243120
Test: test.py --jit

(cherry picked from commit 23ddfe86788fe1c95b8be6c76f3a127f8f51dd9f)

Change-Id: I21157fd9ab5589f0ec8e18ac321b2ac7177ad9b2
compiler/jit/jit_compiler.cc
test/655-jit-clinit/expected.txt [new file with mode: 0644]
test/655-jit-clinit/info.txt [new file with mode: 0644]
test/655-jit-clinit/src/Main.java [new file with mode: 0644]
test/common/runtime_state.cc