OSDN Git Service

ART: Ignore result for exception-case JNIEndWithReference
authorAndreas Gampe <agampe@google.com>
Sat, 11 Apr 2015 02:57:29 +0000 (19:57 -0700)
committerAndreas Gampe <agampe@google.com>
Sat, 11 Apr 2015 03:42:14 +0000 (20:42 -0700)
commit48ee356484225ef0d7cfa197b1699524b866c802
treeea33754d124d5e15b02e1a7c09c81d27fd625ba3
parent58565098b2298041ccc97371a3cc486df88d51b3
ART: Ignore result for exception-case JNIEndWithReference

The value may not contain a valid jobject, so ignore and use null
directly.

Refactor a bit to have one common function for both synchronized
and non-synchronized case.

Add a test to the JNI compiler tests.

Bug: 18135031
Change-Id: If2f004a112f36f4ff68172a946dec67ce561ae4d
compiler/jni/jni_compiler_test.cc
runtime/entrypoints/quick/quick_jni_entrypoints.cc
test/MyClassNatives/MyClassNatives.java