3 ms·
How would you implement determining the root set? So how would you detect which local variables reference an object? The Gc needs to keep these objects alive.
by readittwice 10y ago
How would you implement determining the root set? So how would you detect which local variables reference an object? The Gc needs to keep these objects alive.
AFAIK even conservative root-scanning is not possible right now. Please correct me if I am wrong: With the current bytecodes it is only possible to access the heap but not the stack. To make things worse, object references could also be in registers.