From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5754 invoked by alias); 22 Jan 2007 23:33:39 -0000 Received: (qmail 5737 invoked by alias); 22 Jan 2007 23:33:38 -0000 Date: Mon, 22 Jan 2007 23:33:00 -0000 Message-ID: <20070122233338.5736.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug java/29812] env->klass value is not updated during the native calls In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "tromey at gcc dot gnu dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2007-q1/txt/msg00157.txt.bz2 ------- 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) : Now unsigned char. : Now bool. : 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