OSDN Git Service

Keep internal stack trace methods declaring classes live
authorMathieu Chartier <mathieuc@google.com>
Tue, 29 Sep 2015 17:21:55 +0000 (10:21 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 30 Sep 2015 01:11:12 +0000 (18:11 -0700)
commit566fc926942ed57925627d1bd43e099938084f1e
treec7551ecbfbaa82ec37a755b3aff53fa24253d64a
parent0766e3ff5638b14d6b3ea6157c800eed11be5b98
Keep internal stack trace methods declaring classes live

We now store the declaring classes in the internal stack trace to
make sure class unloading doesn't unload any classes owning methods
in the stack trace.

This fixes DexClassLoaderTest in libcore. Added regression test.

Bug: 22720414

Change-Id: I185f87c8ec0807e83f4661bd5bb5652dba6fc281
runtime/thread.cc
test/141-class-unload/expected.txt
test/141-class-unload/src-ex/IntHolder.java
test/141-class-unload/src/Main.java