Microsoft SDK for Java

gc

This method of the SystemX class runs the garbage collector.

Syntax

public static native void gc();

Remarks

Calling the gc method causes the virtual machine to perform garbage collection. When program control returns from the method call, the virtual machine has made a best effort to reclaim space from all unused objects.

See Also

java.lang.Runtime.gc, java.lang.System.gc

© 1999 Microsoft Corporation. All rights reserved. Terms of use.