harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6677) [classlib][concurrent] NegativeArraySizeException reported in ArrayBlockingQueue under load
Date Wed, 24 Nov 2010 08:26:14 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935254#action_12935254

Regis Xu commented on HARMONY-6677:

'count' is protected by 'lock', also extract() and removeAt(),  and before invoking extract()
and removeAt(), there has check to make sure 'count' not zero.
So I can't see any chance that 'count' could be invalidate in extrac() and removeAt().

> [classlib][concurrent] NegativeArraySizeException reported in ArrayBlockingQueue under
> -------------------------------------------------------------------------------------------
>                 Key: HARMONY-6677
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6677
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 6.0M3
>         Environment: All Operating Systems
>            Reporter: Prashanth KS
>             Fix For: 6.0M3
>         Attachments: 001_HARMONY_6677.patch
> The extract() and the removeAt() methods in the ArrayBlockingQueue class do not have
a bounds check for the count variable and hence a NegativeArraySizeException is reported when
this class is load tested, with multiple threads.

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

View raw message