-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for -XX:Compatibility=elasticsearch #18387
Conversation
If -XX:Compatibility=elasticsearch is specified: * recognize -XX:+UseG1GC and -XX:-UseG1GC * include flags G1HeapRegionSize, G1ReservePercent, InitiatingHeapOccupancyPercent and UseG1GC in -XX:+PrintFlagsFinal output If -XX:Compatibility= is specified more than once, or with a mode other than "elasticsearch" (not case-sensitive), the JVM will refuse to start. G1HeapRegionSize is derived from MaxHeapSize. Signed-off-by: Keith W. Campbell <[email protected]>
ef2da41
to
f316723
Compare
Pushed a minor change to the computation of |
@@ -6903,6 +6929,7 @@ protectedInitializeJavaVM(J9PortLibrary* portLibrary, void * userData) | |||
int filter = -1; | |||
#endif | |||
J9JavaVM** BFUjavaVM; | |||
IDATA xxUseG1GC = 0; /* +1 if -XX:+UseG1GC used; -1 if -XX:-UseG1GC used */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not a BOOLEAN?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, I see we need third state for "command line" vs "ergonomic"
jenkins test sanity alinux64 jdk17 |
Pls open a docs issue. |
|
If
-XX:Compatibility=elasticsearch
is specified:-XX:+UseG1GC
and-XX:-UseG1GC
G1HeapRegionSize
,G1ReservePercent
,InitiatingHeapOccupancyPercent
andUseG1GC
in-XX:+PrintFlagsFinal
output (G1HeapRegionSize
is derived fromMaxHeapSize
)If
-XX:Compatibility=
is specified more than once, or with a mode other than"elasticsearch"
(not case-sensitive), the JVM will refuse to start.Issue: #18265.