OSDN Git Service

Progress toward indirect JNI references.
authorAndy McFadden <fadden@android.com>
Wed, 19 Aug 2009 14:21:41 +0000 (07:21 -0700)
committerAndy McFadden <fadden@android.com>
Fri, 21 Aug 2009 00:30:56 +0000 (17:30 -0700)
commitab00d455ea67fbf4090567bb09ead8017896ea61
tree2b2d66720683073fb4bab9739c7c49ec1594c4b4
parentfe79541b5cc5a490dd3a5b2e68f884fdfad4ca76
Progress toward indirect JNI references.

Switch from simple typecasts to conversion functions for the objects
passed in and out of JNI calls.  No real change here; object references
are still just pointers.

Use explicit pin/unpin calls for primitive arrays.  For GetStringChars
we now pin the char[] rather than the String object.  (Which doesn't
make much difference in the grand scheme of things, since you need to
keep the String to pass into the release function anyway.)
vm/CheckJni.c
vm/IndirectRefTable.c
vm/IndirectRefTable.h
vm/Jni.c
vm/JniInternal.h
vm/UtfString.c
vm/UtfString.h
vm/test/TestIndirectRefTable.c