OSDN Git Service

Fix JIT for class unloading
authorMathieu Chartier <mathieuc@google.com>
Fri, 25 Sep 2015 18:34:45 +0000 (11:34 -0700)
committerMathieu Chartier <mathieuc@google.com>
Fri, 25 Sep 2015 20:19:42 +0000 (13:19 -0700)
commita50f9cf85a3c72376a6f3e4d2e673c08169cffde
tree9e3aea98571d04c3a3d43c4319bacd4c76e11974
parent8a0014dd3ad1562d93695fa0d3033856ec7da133
Fix JIT for class unloading

Keep declaring class of method live to prevent unloading.
Wait for JIT to finish compiling before calling Runtime.gc(), this
prevents flaky failures due to classes not being unloaded.

Bug: 22720414

Change-Id: I9fe5e5e39d681bcd22acc2d2f34b0dbc9887708d
runtime/jit/jit.h
runtime/jit/jit_instrumentation.cc
runtime/jit/jit_instrumentation.h
test/004-JniTest/jni_test.cc
test/141-class-unload/expected.txt
test/141-class-unload/jni_unload.cc
test/141-class-unload/src-ex/IntHolder.java
test/141-class-unload/src/Main.java
test/457-regs/expected.txt