Performance of 'direct buffer constructor' #14971
Answered
by
chrisvest
oscar-besga-panel
asked this question in
Q&A
-
|
Hi We are planning to migrate our project from Java8 to Java11/17, while using netty (version 4.1.60) We see that in Java8, 'direct buffer constructor' is available, where in Java11 is not. We don't know if having this function disabled can impact performance, do you have any experience in this situation ? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
chrisvest
Mar 27, 2025
Replies: 1 comment 2 replies
-
|
It's not available because Java started to lock down reflective access to JDK internals. Netty will use JNI, Unsafe, or create buffers with cleaners attached instead, depending on the use case. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
oscar-besga-panel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not available because Java started to lock down reflective access to JDK internals. Netty will use JNI, Unsafe, or create buffers with cleaners attached instead, depending on the use case.