Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How Eden Space GC works?

maxz1Jul 24 2011 — edited Jul 25 2011
Hello,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2011
Added on Jul 24 2011
2 comments
457 views