Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

Is the Java21 GC doc describe error?

Mu HuangDec 25 2023 — edited Dec 25 2023

The page:

https://docs.oracle.com/en/java/javase/21/gctuning/factors-affecting-garbage-collection-performance.html#GUID-4B8860DF-42B5-484C-91EF-06DAA6043AC1

For example, -XX:SurvivorRatio=6 sets the ratio between eden and a survivor space to 1:6. In other words, each survivor space will be one-sixth of the size of eden, and thus one-eighth of the size of the young generation (not one-seventh, because there are two survivor spaces).


The right describe is ‘the ratio between a survivor and eden space to 1:6’ ?

Comments
Post Details
Added on Dec 25 2023
0 comments
39 views