OSDN Git Service

Don't cache failures in the interface cache.
authorElliott Hughes <enh@google.com>
Fri, 7 Dec 2012 00:33:38 +0000 (16:33 -0800)
committerElliott Hughes <enh@google.com>
Fri, 7 Dec 2012 00:33:38 +0000 (16:33 -0800)
commit333155b24b606fa90e7fcd54c90bd5186d24a937
tree5ba991fd8c67db9fd2d481a2e9a53b8d359de45d
parentc2228b7feb1ed2b143666ae1a664c1cc4188ec48
Don't cache failures in the interface cache.

If we try to reuse a failure, we'll be holding a NULL Method* without
the current thread having the appropriate exception pending, which will
lead to a SIGSEGV.

I've added a corresponding vm-test to cts/.

Bug: http://code.google.com/p/android/issues/detail?id=29358
Change-Id: I044e438c46fce256c8eff2dac5d86778734d5614
vm/AtomicCache.h
vm/mterp/common/FindInterface.h
vm/oo/TypeCheck.cpp