Java Garbage Collection Algorithms
Before diving into the practical implementation of details of the algorithms lets first understand what areGC Roots.
GC Roots are the objects which are accessible directly outside from the heap. Example:
- Active Threads.
- Static Variables.
- Local variable and input parameters of the currently executing methods
- JNI References.