directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nik...@apache.org
Subject svn commit: r387902 - /directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java
Date Wed, 22 Mar 2006 17:53:04 GMT
Author: niklas
Date: Wed Mar 22 09:53:01 2006
New Revision: 387902

URL: http://svn.apache.org/viewcvs?rev=387902&view=rev
Log:
Added a call to init() on the created UnexpandableByteBuffer so that its refCount is set to
1 when wrapping an NIO ByteBuffer. 

Modified:
    directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java

Modified: directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java
URL: http://svn.apache.org/viewcvs/directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java?rev=387902&r1=387901&r2=387902&view=diff
==============================================================================
--- directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java
(original)
+++ directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java
Wed Mar 22 09:53:01 2006
@@ -236,6 +236,7 @@
         ensureNotDisposed();
         PooledByteBuffer buf = allocateContainer();
         buf.init( new UnexpandableByteBuffer( nioBuffer ), false );
+        buf.buf.init();
         buf.setPooled( false );
         return buf;
     }



Mime
View raw message