Inspectopedia
 
2024.3

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

Warning
New
Last modified: 03 December 2024

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.