Keith Wall created QPID-6770:
--------------------------------
Summary: 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]