[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:04:00 GMT 2007



------- Comment #4 from tromey at gcc dot gnu dot org  2007-01-22 23:04 -------
Subject: Bug 29812

Author: tromey
Date: Mon Jan 22 23:04:16 2007
New Revision: 121064

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121064
Log:
        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'.

Added:
    trunk/libjava/testsuite/libjava.jni/pr29812.c
    trunk/libjava/testsuite/libjava.jni/pr29812.h
    trunk/libjava/testsuite/libjava.jni/pr29812.jar   (with props)
    trunk/libjava/testsuite/libjava.jni/pr29812.java
    trunk/libjava/testsuite/libjava.jni/pr29812.out
    trunk/libjava/testsuite/libjava.jni/pr29812_injar.c
    trunk/libjava/testsuite/libjava.jni/pr29812_injar.h
    trunk/libjava/testsuite/libjava.jni/pr29812_injar.jar   (with props)
    trunk/libjava/testsuite/libjava.jni/pr29812_injar.java
Modified:
    trunk/libjava/ChangeLog
    trunk/libjava/include/jni_md.h
    trunk/libjava/include/jvm.h
    trunk/libjava/java/lang/natRuntime.cc
    trunk/libjava/jni.cc
    trunk/libjava/testsuite/libjava.jni/jni.exp

Propchange: trunk/libjava/testsuite/libjava.jni/pr29812.jar
            ('svn:mime-type' added)

Propchange: trunk/libjava/testsuite/libjava.jni/pr29812_injar.jar
            ('svn:mime-type' added)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29812



More information about the Java-prs mailing list