You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rg...@apache.org on 2015/08/20 17:04:04 UTC
svn commit: r1696803 -
/qpid/java/trunk/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java
Author: rgodfrey
Date: Thu Aug 20 15:04:04 2015
New Revision: 1696803
URL: http://svn.apache.org/r1696803
Log:
QPID-6662 : Remove finalize method on QpidByteBuffer as this causes unacceptable overhead
Modified:
qpid/java/trunk/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java
Modified: qpid/java/trunk/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java?rev=1696803&r1=1696802&r2=1696803&view=diff
==============================================================================
--- qpid/java/trunk/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java (original)
+++ qpid/java/trunk/common/src/main/java/org/apache/qpid/bytebuffer/QpidByteBuffer.java Thu Aug 20 15:04:04 2015
@@ -33,6 +33,7 @@ import java.util.Iterator;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
+import java.util.concurrent.atomic.AtomicLong;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLEngineResult;
@@ -409,13 +410,6 @@ public final class QpidByteBuffer
return this;
}
- @Override
- protected void finalize() throws Throwable
- {
- dispose();
- super.finalize();
- }
-
public void dispose()
{
if(DISPOSED_UPDATER.compareAndSet(this,0,1))
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org