harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r371895 - /incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/com/ibm/platform/struct/AbstractMemorySpy.java
Date Tue, 24 Jan 2006 11:19:37 GMT
Author: tellison
Date: Tue Jan 24 03:19:33 2006
New Revision: 371895

URL: http://svn.apache.org/viewcvs?rev=371895&view=rev
Log:
Fix for first part of HARMONY-38 problem.
 - PlatformAddress.autoFree() now really does free the memory when object collected.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/com/ibm/platform/struct/AbstractMemorySpy.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/com/ibm/platform/struct/AbstractMemorySpy.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/com/ibm/platform/struct/AbstractMemorySpy.java?rev=371895&r1=371894&r2=371895&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/com/ibm/platform/struct/AbstractMemorySpy.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/com/ibm/platform/struct/AbstractMemorySpy.java
Tue Jan 24 03:19:33 2006
@@ -91,7 +91,7 @@
 	public void autoFree(PlatformAddress address) {
 		AddressWrapper wrapper;
 		synchronized (lock) {
-			wrapper = (AddressWrapper) memoryInUse.remove(address);
+			wrapper = (AddressWrapper) memoryInUse.get(address);
 		}
 		if (wrapper != null) {
 			wrapper.autoFree = true;



Mime
View raw message