incubator-directmemory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bperr...@apache.org
Subject svn commit: r1227847 - /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/OffHeapMemoryBuffer.java
Date Thu, 05 Jan 2012 21:23:00 GMT
Author: bperroud
Date: Thu Jan  5 21:22:59 2012
New Revision: 1227847

URL: http://svn.apache.org/viewvc?rev=1227847&view=rev
Log:
DIRECTMEMORY-46 : OffHeapMemoryBuffer.free do an unnecessary pointers.add

Modified:
    incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/OffHeapMemoryBuffer.java

Modified: incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/OffHeapMemoryBuffer.java
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/OffHeapMemoryBuffer.java?rev=1227847&r1=1227846&r2=1227847&view=diff
==============================================================================
--- incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/OffHeapMemoryBuffer.java
(original)
+++ incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/OffHeapMemoryBuffer.java
Thu Jan  5 21:22:59 2012
@@ -159,7 +159,6 @@ public class OffHeapMemoryBuffer
         pointer2free.clazz = null;
         pointer2free.directBuffer = null;
         used.addAndGet( -( pointer2free.end - pointer2free.start ) );
-        pointers.add( pointer2free );
         return pointer2free.end - pointer2free.start;
     }
 



Mime
View raw message