HBASE-13819 Make RPC layer CellBlock buffer a DirectByteBuffer.

This commit is contained in:
anoopsjohn 2015-10-13 07:57:53 +05:30
parent ac82a86320
commit 6143b7694c
1 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,8 @@ import com.google.common.annotations.VisibleForTesting;
* achieve a particular 'run' size over time give or take a few extremes. Set TRACE level on this
* class for a couple of seconds to get reporting on how it is running when deployed.
*
* <p>This pool returns off heap ByteBuffers.
*
* <p>This class is thread safe.
*/
@InterfaceAudience.Private
@ -94,7 +96,7 @@ public class BoundedByteBufferPool {
// Clear sets limit == capacity. Postion == 0.
bb.clear();
} else {
bb = ByteBuffer.allocate(this.runningAverage);
bb = ByteBuffer.allocateDirect(this.runningAverage);
this.allocations.incrementAndGet();
}
if (LOG.isTraceEnabled()) {