MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / gc

Method gc

vm/JavaAPI/src/java/lang/Runtime.java:53–55  ·  view source on GitHub ↗

Runs the garbage collector. Calling this method suggests that the Java Virtual Machine expend effort toward recycling unused objects in order to make the memory they currently occupy available for quick reuse. When control returns from the method call, the Java Virtual Machine has made its best effo

()

Source from the content-addressed store, hash-verified

51 * The method System.gc() is the conventional and convenient means of invoking this method.
52 */
53 public void gc(){
54 System.gc();
55 }
56
57 /**
58 * Returns the runtime object associated with the current Java application. Most of the methods of class Runtime are instance methods and must be invoked with respect to the current runtime object.

Callers

nothing calls this directly

Calls 1

gcMethod · 0.95

Tested by

no test coverage detected