Reputation: 456
In the Java Heap, when the survivor space size limit is reached, what references get promoted to the old generation? Every survivor? Or just the oldest of the survivors? Is this configurable?
Upvotes: 1
Views: 129
Reputation: 522
basically there are two survivor spaces. Each time objects that survived are moved to the other space. JVM knows how many times object has been moved between survivor space and based on that you can tune GC
More info:
http://docs.oracle.com/cd/E19159-01/819-3681/abeil/index.html
http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html
Upvotes: 2