Skip to content

Files

Latest commit

 

History

History
19 lines (12 loc) · 523 Bytes

ExplicitGarbageCollectionCall.md

File metadata and controls

19 lines (12 loc) · 523 Bytes

Pattern: Explicit call to Garbage Collector

Issue: -

Description

Reports all calls to explicitly trigger the Garbage Collector. Code should work independently of the garbage collector and should not require the GC to be triggered in certain points in time.

Example of incorrect code:

System.gc()
Runtime.getRuntime().gc()
System.runFinalization()

Further Reading