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

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

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

QPID-6770: Ensure that the first buffer returned by 
QBB#allocateDirectCollection is always view

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to