Inspectopedia Help

Call to 'System.gc()' or 'Runtime.gc()'

Reports System.gc() or Runtime.gc() calls. While occasionally useful in testing, explicitly triggering garbage collection via System.gc() is almost never recommended in production code and can result in serious performance issues.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023