mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DIRMINA-988) 100% CPU when using IoBuffer.shrink() method in some cases
Date Fri, 17 Oct 2014 23:21:33 GMT

     [ https://issues.apache.org/jira/browse/DIRMINA-988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny resolved DIRMINA-988.
---------------------------------------
    Resolution: Fixed

Fixed with commit : 80af8c36890f7a25beb35fe01c2b62650414cf0e

Thanks to Erick Lichtas for the report.

> 100% CPU when using IoBuffer.shrink() method in some cases
> ----------------------------------------------------------
>
>                 Key: DIRMINA-988
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-988
>             Project: MINA
>          Issue Type: Bug
>    Affects Versions: 2.0.8
>            Reporter: Emmanuel Lecharny
>            Priority: Blocker
>             Fix For: 2.0.9
>
>
> When one tries to shrink a buffer which minimal capacity is set to 0, and set the size
to 0, it enter into an infinite loop.
> This is due to this loop :
> {code}
>         for (;;) {
>             if (newCapacity >>> 1 < minCapacity) {
>                 break;
>             }
>             newCapacity >>>= 1;
>         }
> {code}
> Fixed with commit : 80af8c36890f7a25beb35fe01c2b62650414cf0e
> Thanks to Erick Lichtas for the report.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message