harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Rogers (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6257) [classlib][luni] - Optimize OSMemory.get/setByteArray
Date Mon, 06 Jul 2009 21:09:14 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727785#action_12727785
] 

Ian Rogers commented on HARMONY-6257:
-------------------------------------

Just FYI, in MRP we rewrote this code to use VM magic:

http://git.codehaus.org/gitweb.cgi?p=mrp.git;a=blob;f=libraryInterface/Harmony/ASF/src/org/apache/harmony/luni/platform/OSMemory.java;h=0a72e64573d0abda7552fc3a29f6201e7e8712df;hb=HEAD

Regards, Ian

> [classlib][luni] - Optimize OSMemory.get/setByteArray
> -----------------------------------------------------
>
>                 Key: HARMONY-6257
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6257
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>    Affects Versions: 5.0M10
>            Reporter: Regis Xu
>         Attachments: HARMONY-6257.diff
>
>
> in getByteArray, use SetByteArrayRegion to avoid memory copy from java to native
> in setByteArray, Get/ReleasePrimitiveArrayCritical instead of GetByteArrayElements/ReleaseByteArrayElements
to avoid memory copy.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message