You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/10/05 12:27:27 UTC

[jira] [Commented] (QPID-6770) Prevent chains of DirectByteBuffers forming when slicing the thread's cached buffer

    [ https://issues.apache.org/jira/browse/QPID-6770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14943194#comment-14943194 ] 

ASF subversion and git services commented on QPID-6770:
-------------------------------------------------------

Commit 1706787 from [~k-wall] in branch 'java/trunk'
[ https://svn.apache.org/r1706787 ]

QPID-6770: Prevent chains of DirectByteBuffers forming when slicing the thread-local cached buffer

> Prevent chains of DirectByteBuffers forming when slicing the thread's cached buffer
> -----------------------------------------------------------------------------------
>
>                 Key: QPID-6770
>                 URL: https://issues.apache.org/jira/browse/QPID-6770
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>            Reporter: Keith Wall
>
> The QBB has a per thread cached DirectByteBuffer.  Callers requiring a buffer are served slices of this buffer.  The algorithm currently takes a slice  of the buffer for the caller, then takes a second slice to represent the bytes that remain unused in the buffer and discards the original references.  This approach has the unfortunate consequence that a chain of ByteBuffers forms as each DirectByteBuffer slice references its parent via its attachment field.
> The following posting describes the issue:
> http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-February/024857.html



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org