You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ivan Volosyuk (JIRA)" <ji...@apache.org> on 2006/10/11 17:42:21 UTC

[jira] Commented: (HARMONY-1634) [classlib][native] unbalanced GetPrimitiveArrayCritical in classlib native code

    [ http://issues.apache.org/jira/browse/HARMONY-1634?page=comments#action_12441486 ] 
            
Ivan Volosyuk commented on HARMONY-1634:
----------------------------------------

Yes, everything is ok. Thanks.

> [classlib][native] unbalanced GetPrimitiveArrayCritical in classlib native code
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-1634
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1634
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Tim Ellison
>            Priority: Minor
>         Attachments: unbalanced_primitive_arrays_fix.diff
>
>
> GetPrimitiveArrayCritical should be followed by ReleasePrimitiveArrayCritical. This is done in classlib code, but the release is only done when a copying was made. This is incorrect. The objects can be pinned in java heap and can stay pinned indefinetly. The Get.. Release pair can be used to prevent GC during the operation which will also cause problems with current classlib implementation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira