How Eden Space GC works?
maxz1Jul 24 2011 — edited Jul 25 2011Hello,
In this article http://www.oracle.com/technetwork/java/gc-tuning-5-138395.html
it is described that garbage collector is first executed on Eden survival space
to eliminate the need of running the full GC.
I am wondering how Mark Sweep algorithm can be applied to only the Eden subset
of Java objects without touching other objects from other survival spaces.
Because the idea of Mark Seep is to traverse everything from roots to find out
unreferenced objects, but it means that we cannot leave with only Eden space traversal.
Does anybody knows how it is done in reality? Is there some other algorithm used
for Eden survival space which differs from the classical Mark Sweep?
Reference counting?
Thanks