danez opened a new pull request, #24222:
URL: https://github.com/apache/kafka/pull/24222

   Java 27 renamed `-XX:InitiatingHeapOccupancyPercent` to `-XX:G1IHOP`.
   Using the old name now emits a deprecation warning during startup.
   
   Reuse the existing Java major-version detection in kafka-run-class.sh
   to select `-XX:G1IHOP=35` on Java 27 and newer, while retaining
   `-XX:InitiatingHeapOccupancyPercent=35` on older runtimes. GC logging
   reuses the same version detection, and explicit
   `KAFKA_JVM_PERFORMANCE_OPTS` overrides remain unchanged.
   
   Validated with real JVM launches on Temurin Java 17, 21, 25, 26,
   and 27, including GC logging enabled and disabled. Verified custom
   JVM overrides on Java 17, 25, 26, and 27. An additional 88 simulated
   launcher cases cover version parsing, early-access versions, GC
   logging, and overrides.
   
   Bash syntax and diff checks pass. ShellCheck reports no new findings
   compared with the original launcher.
   
   Generated-by: OpenAI Codex GPT-6.1 Sol Medium


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to