harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r540074 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/RuntimeMemorySpy.java
Date Mon, 21 May 2007 09:04:58 GMT
Author: ayza
Date: Mon May 21 02:04:54 2007
New Revision: 540074

URL: http://svn.apache.org/viewvc?view=rev&rev=540074
Log:
Applying patch for RuntimeMemorySpy, see HARMONY-3785 ([classlib][nio] FileChannel.transferFrom[To]
methods throw unexpected IOException)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/RuntimeMemorySpy.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/RuntimeMemorySpy.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/RuntimeMemorySpy.java?view=diff&rev=540074&r1=540073&r2=540074
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/RuntimeMemorySpy.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/RuntimeMemorySpy.java
Mon May 21 02:04:54 2007
@@ -25,12 +25,13 @@
 	}
 
 	public void alloc(PlatformAddress address) {
-		super.alloc(address);
 		// Pay a tax on the allocation to see if there are any frees pending.
 		Reference ref = notifyQueue.poll(); // non-blocking check
 		while (ref != null) {
 			orphanedMemory(ref);
 			ref = notifyQueue.poll();
 		}
+
+        super.alloc(address);
 	}
 }



Mime
View raw message