You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by tr...@apache.org on 2007/11/01 10:46:11 UTC
svn commit: r590949 -
/mina/trunk/core/src/main/java/org/apache/mina/common/CachedBufferAllocator.java
Author: trustin
Date: Thu Nov 1 02:46:10 2007
New Revision: 590949
URL: http://svn.apache.org/viewvc?rev=590949&view=rev
Log:
Forgot to prevent direct buffers from being cached.
Modified:
mina/trunk/core/src/main/java/org/apache/mina/common/CachedBufferAllocator.java
Modified: mina/trunk/core/src/main/java/org/apache/mina/common/CachedBufferAllocator.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/common/CachedBufferAllocator.java?rev=590949&r1=590948&r2=590949&view=diff
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/common/CachedBufferAllocator.java (original)
+++ mina/trunk/core/src/main/java/org/apache/mina/common/CachedBufferAllocator.java Thu Nov 1 02:46:10 2007
@@ -149,7 +149,9 @@
this.buf = newBuf;
// Add to the cache.
- localRecyclables.get().get(oldBuf.capacity()).offer(oldBuf);
+ if (!isDirect()) {
+ localRecyclables.get().get(oldBuf.capacity()).offer(oldBuf);
+ }
}
@Override