Index: src/main/java/org/apache/harmony/luni/platform/RuntimeMemorySpy.java =================================================================== --- src/main/java/org/apache/harmony/luni/platform/RuntimeMemorySpy.java (revision 537921) +++ src/main/java/org/apache/harmony/luni/platform/RuntimeMemorySpy.java (working copy) @@ -25,12 +25,12 @@ } 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); } }