gc-roots Questions

2

As I know static fields (along with Threads, local variables and method arguments, JNI references) act as GC roots. I cannot provide a link that would confirm this, but I have read a lot of articl...
Promotive asked 28/12, 2016 at 16:28

9

The heap memory is garbage collected in Java. Is the stack garbage collected as well? How is stack memory reclaimed?
Welldisposed asked 15/3, 2010 at 13:42

5

Solved

What are the roots in garbage collection? I have read the definition of root as "any reference that you program can access to" and definition of live is that an object that is being used, which ca...
Heritor asked 16/6, 2011 at 1:32

3

Solved

I have a question about GC roots. I read that one of the GC roots is "Live thread". What does that mean? I always had the impression that each thread has its own stack and local variables of a st...
Relive asked 7/10, 2014 at 9:24

2

Solved

I am writing a compiler for a fairly standard stack machine. Now I want to add a garbage collector. I can see that I could generate some sort of 'stack maps' to know which variables are gc roots in...

2

Solved

I'm trying to implement a simple mark and sweep garbage collector in C. The first step of the algorithm is finding the roots. So my question is how can I find the roots in a C program? In the pro...
Borer asked 27/11, 2012 at 3:45
1

© 2022 - 2024 — McMap. All rights reserved.