[ https://issues.apache.org/jira/browse/HARMONY-6257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Regis Xu updated HARMONY-6257:
------------------------------
Attachment: HARMONY-6257.v2.diff
call ReleasePrimitiveArrayCritical anyway.
> [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, HARMONY-6257.v2.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.
|