FileDocCategorySizeDatePackage
RuntimeMemorySpy.javaAPI DocAndroid 1.5 API1334Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.platform

RuntimeMemorySpy

public final class RuntimeMemorySpy extends AbstractMemorySpy

Fields Summary
Constructors Summary
public RuntimeMemorySpy()

        super();
    
Methods Summary
public voidalloc(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();
        }