Questions tagged [gc-roots]

Root collection in tracing garbage collection algorithms

For questions related to the methods and algorithms tracing garbage collectors use to find root nodes to begin their scan of the heap. Like creating gc maps, visiting activation records, local variables and so on.

16 questions
0
votes
0 answers

Java garbage collection - finding set of root nodes

At the beginning of every garbage collection, GC thread needs to figure out what the set of root nodes i.e. those objects that are at the top of reachability hierarchy. Does anyone know how this process is achieved? Is a list maintained and new…
Bober02
  • 15,034
  • 31
  • 92
  • 178
1
2