[Bug java/29812] env->klass value is not updated during the native calls
tromey at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jan 22 23:33:00 GMT 2007
------- Comment #6 from tromey at gcc dot gnu dot org 2007-01-22 23:33 -------
Subject: Bug 29812
Author: tromey
Date: Mon Jan 22 23:33:24 2007
New Revision: 121066
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121066
Log:
PR java/29812:
* 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'.
Modified:
branches/gcc-4_2-branch/libjava/ChangeLog
branches/gcc-4_2-branch/libjava/include/jni_md.h
branches/gcc-4_2-branch/libjava/include/jvm.h
branches/gcc-4_2-branch/libjava/java/lang/natRuntime.cc
branches/gcc-4_2-branch/libjava/jni.cc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29812
More information about the Gcc-bugs
mailing list