You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (JIRA)" <ji...@apache.org> on 2015/10/05 12:25:27 UTC
[jira] [Created] (QPID-6770) Prevent chains of DirectByteBuffers
forming when slicing the thread's cached buffer
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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org