You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directmemory.apache.org by "Benoit Perroud (Updated) (JIRA)" <ji...@apache.org> on 2011/12/29 20:53:30 UTC

[jira] [Updated] (DIRECTMEMORY-46) OffHeapMemoryBuffer.free do an unnecessary pointers.add

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

Benoit Perroud updated DIRECTMEMORY-46:
---------------------------------------

    Attachment: OffHeapMemoryBufferFree.patch

Remove unnecessary add
                
> OffHeapMemoryBuffer.free do an unnecessary pointers.add
> -------------------------------------------------------
>
>                 Key: DIRECTMEMORY-46
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-46
>             Project: Apache DirectMemory
>          Issue Type: Bug
>            Reporter: Benoit Perroud
>            Priority: Minor
>         Attachments: OffHeapMemoryBufferFree.patch
>
>
> In OffHeapMemoryBuffer.free, pointers.add is done but is wrong : all Pointers are always present in the pointers list. Readding it leads to duplicate that will increase unnecessary the size of the pointers list, and thus increase allocation time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira