harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Volosyuk (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1634) [classlib][native] unbalanced GetPrimitiveArrayCritical in classlib native code
Date Wed, 11 Oct 2006 15:42:21 GMT
    [ 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

        

Mime
View raw message