incubator-directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Perroud (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DIRECTMEMORY-46) OffHeapMemoryBuffer.free do an unnecessary pointers.add
Date Thu, 29 Dec 2011 19:53:30 GMT

     [ 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

        

Mime
View raw message