harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-578) [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement
Date Tue, 27 Jun 2006 03:32:31 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-578?page=all ]

Paulex Yang updated HARMONY-578:

    Attachment: JNI.ZIP

This patch includes several parts:
1. the nio utility class to provide support for JNI methods
2. the nio native codes to implement JNI methods 
3. the build file patch to build nio native codes

And the native codes' performance can be improved by caching the java class/method accessor
return value, I'll implement this cache in the following steps.

You may want to follow the steps below to apply this patch:
1. unzip the zip archive to modules/nio
2. run 01.filecopy.sh
3. apply 02.nio.diff to nio modules
4. apply 03.native.diff to native-src
5. rebuild and check if hynio.dll/so is built successfully

Thank you.

> [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement
> -----------------------------------------------------------------------------------
>          Key: HARMONY-578
>          URL: http://issues.apache.org/jira/browse/HARMONY-578
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>  Attachments: JNI.ZIP
> JNI 1.4 add three new API related to nio buffers, 
>         jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity)
>         void* GetDirectBufferAddress(JNIEnv* env, jobject buf)
>         jlong GetDirectBufferCapacity(JNIEnv* env, jobject buf)
> To simplify these JNI methods implementation, NIO module can provide the corresponding
Java utilities and JNI wrapper code. I'll raise the patch soon.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message