gcc/libjava/testsuite/libjava.jni
Tom Tromey 262fa8a4b5 re PR java/29812 (env->klass value is not updated during the native calls)
PR java/29812:
	* testsuite/libjava.jni/pr29812.java: New file.
	* testsuite/libjava.jni/pr29812_injar.java: New file.
	* testsuite/libjava.jni/pr29812_injar.jar: New file.
	* testsuite/libjava.jni/pr29812.out: New file.
	* testsuite/libjava.jni/pr29812_injar.c: New file.
	* testsuite/libjava.jni/pr29812_injar.h: New file.
	* testsuite/libjava.jni/pr29812.jar: New file.
	* testsuite/libjava.jni/pr29812.c: New file.
	* testsuite/libjava.jni/pr29812.h: New file.
	* testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
	New proc.
	(gcj_jni_invocation_test_one): Use it.
	(gcj_jni_pr29812): New proc.
	(gcj_jni_run): Use it.
	* java/lang/natRuntime.cc (_load): Push a new system frame before
	calling JNI_OnLoad.
	* include/jvm.h (_Jv_JNI_PopSystemFrame): Declare.
	(_Jv_GetJNIEnvNewFrameWithLoader): Likewise.
	* jni.cc (struct _Jv_JNI_LocalFrame) <marker>: Now unsigned char.
	<allocated_p>: Now bool.
	<loader>: New field.
	(_Jv_JNI_EnsureLocalCapacity): Updated.
	(_Jv_JNI_NewLocalRef): Likewise.
	(_Jv_JNI_NewLocalRef): Likewise.
	(_Jv_JNI_PopLocalFrame): Likewise.
	(_Jv_JNI_FindClass): Likewise.
	(_Jv_GetJNIEnvNewFrame): Likewise.
	(_Jv_JNI_AttachCurrentThread): Likewise.
	(_Jv_GetJNIEnvNewFrameWithLoader): New function.
	(_Jv_GetJNIEnvNewFrame): Use it.
	* include/jni_md.h (_CLASSPATH_JNIENV_CONTENTS): Removed 'klass'.

From-SVN: r121064
2007-01-22 23:04:16 +00:00
..
invocation Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
bytebuffer.c re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
bytebuffer.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
bytebuffer.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
bytebuffer.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
bytebuffer.out re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
calls.c
calls.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
calls.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
calls.java
calls.out
cxxtest.cc
cxxtest.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
cxxtest.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
cxxtest.java
cxxtest.out
directbuffer.c re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
directbuffer.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
directbuffer.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
directbuffer.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
directbuffer.out re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
field.c
field.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
field.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
field.java
field.out
final_method.c
final_method.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
final_method.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
final_method.java
final_method.out
findclass2.c jni.cc (_Jv_JNI_FindClass): Initialize class. 2007-01-18 20:47:50 +00:00
findclass2.h jni.cc (_Jv_JNI_FindClass): Initialize class. 2007-01-18 20:47:50 +00:00
findclass2.jar jni.cc (_Jv_JNI_FindClass): Initialize class. 2007-01-18 20:47:50 +00:00
findclass2.java jni.cc (_Jv_JNI_FindClass): Initialize class. 2007-01-18 20:47:50 +00:00
findclass2.out jni.cc (_Jv_JNI_FindClass): Initialize class. 2007-01-18 20:47:50 +00:00
findclass.c
findclass.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
findclass.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
findclass.java
findclass.out
iface.c
iface.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
iface.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
iface.java
iface.out
invoke.c
invoke.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
invoke.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
invoke.java
invoke.out
jni.exp re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
jniutf.c
jniutf.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
jniutf.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
jniutf.java
jniutf.out
martin.c
martin.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
martin.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
martin.java
martin.out
noclass.c
noclass.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
noclass.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
noclass.java
noclass.out
overload.c
overload.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
overload.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
overload.java
overload.out
pr11951.c
pr11951.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
pr11951.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
pr11951.java
pr11951.out
pr18278.c re PR java/18278 (JNI functions cannot return a weak reference) 2005-11-29 18:34:58 +00:00
pr18278.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
pr18278.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
pr18278.java re PR java/18278 (JNI functions cannot return a weak reference) 2005-11-29 18:34:58 +00:00
pr18278.out re PR java/18278 (JNI functions cannot return a weak reference) 2005-11-29 18:34:58 +00:00
pr23739.c re PR libgcj/23739 (JNI: IsAssignableFrom reverses arguments) 2005-09-06 16:01:31 +00:00
pr23739.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
pr23739.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
pr23739.java re PR libgcj/23739 (JNI: IsAssignableFrom reverses arguments) 2005-09-06 16:01:31 +00:00
pr23739.out re PR libgcj/23739 (JNI: IsAssignableFrom reverses arguments) 2005-09-06 16:01:31 +00:00
pr29812_injar.c re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
pr29812_injar.h re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
pr29812_injar.jar re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
pr29812_injar.java re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
pr29812.c re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
pr29812.h re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
pr29812.jar re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
pr29812.java re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
pr29812.out re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
PR15133.c
PR15133.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PR15133.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PR15133.java
PR15133.out
PR18116.c re PR libgcj/18116 (JNI uses dot instead of slash as the package separator) 2005-02-14 14:57:37 +00:00
PR18116.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PR18116.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PR18116.java re PR libgcj/18116 (JNI uses dot instead of slash as the package separator) 2005-02-14 14:57:37 +00:00
PR18116.out re PR libgcj/18116 (JNI uses dot instead of slash as the package separator) 2005-02-14 14:57:37 +00:00
PR28178.c re PR libgcj/28178 (jniEnv->DeleteLocalRef (null) fails) 2006-06-27 15:33:24 +00:00
PR28178.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PR28178.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PR28178.java re PR libgcj/28178 (jniEnv->DeleteLocalRef (null) fails) 2006-06-27 15:33:24 +00:00
PR28178.out re PR libgcj/28178 (jniEnv->DeleteLocalRef (null) fails) 2006-06-27 15:33:24 +00:00
register2.c Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
register2.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
register2.java register2.java: New file. 2006-10-18 23:17:04 +00:00
register2.out register2.java: New file. 2006-10-18 23:17:04 +00:00
register.c
register.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
register.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
register.java
register.out
simple_int.c
simple_int.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
simple_int.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
simple_int.java
simple_int.out
throwit.c
throwit.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
throwit.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
throwit.java
throwit.out
virtual.c
virtual.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
virtual.jar Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
virtual.java
virtual.out