classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Classpath JNI changes - take 2


From: Stephen Crawley
Subject: Classpath JNI changes - take 2
Date: Mon, 09 Dec 2002 01:54:15 +1000

I tried Stuart Ballard's suggestion of putting all JNI calls EXCEPT
for the Kissme implemented ones int GC regions.  It works.

With that in mind, the attached classpath.diffs.gz files give my 
revised proposal for changes to jni.h in Classpath.  Basicly, the
changes allow the following:

  1  They define placeholders for the JDK 1.4 extensions to JNI

  2  They allow JVM implementations to #include jni.h to avoid 
     mismatched function tables.

  3  They allow JVM implementations to define custom extensions  
     to the function table.

Item 2 is achieved by making the 'void *' declaration of VM specific
types conditiononal on a preprocessor symbol not being set.
Item 3 is achieved using a new --with-jni-extensions=... option for
configure.

I've also attached the JNI extensions header file for Kissme, and the 
Kissme codebase changes to solve the original problem.

I hope that this will be less contentious than my previous proposal.

-- Steve


-- Steve

Attachment: jni_ext-kissme.h
Description: jni_ext-kissme.h

Attachment: kissme.diffs.gz
Description: kissme.diffs.gz

Attachment: classpath.diffs.gz
Description: classpath.diffs.gz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]