This method of the SystemX class runs the garbage collector.
public static native void gc();
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.
java.lang.Runtime.gc, java.lang.System.gc