Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
132 views