lhotari opened a new pull request, #24236:
URL: https://github.com/apache/pulsar/pull/24236

   ### Motivation
   
   Adapt startup scripts for these Java 24 changes:
   - [JEP 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for 
Removal](https://openjdk.org/jeps/471)
   - [JEP 472: Prepare to Restrict the Use of JNI](https://openjdk.org/jeps/472)
   - [JEP 474: ZGC: Generational Mode by Default](https://openjdk.org/jeps/474)
   - [JEP 498: Warn upon Use of Memory-Access Methods in 
sun.misc.Unsafe](https://openjdk.org/jeps/498)
   
   Adapt to JEP 498 and JEP 471 related Netty 4.1.121.Final change:
   - https://github.com/netty/netty/pull/14943
   
   ### Modifications
   - pass `--sun-misc-unsafe-memory-access=allow` on Java 23+
   - pass `-XX:+ZGenerational` only on Java 21 or Java 22 by default
   - pass `--enable-native-access=ALL-UNNAMED` in `bin/pulsar` and 
`bin/bookkeeper`, this option is supported also on Java 17
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to