You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re-initialize platform dependent netty classes/values at runtime
Platform dependent classes should not be initialized at build time to
avoid issues when running the native executable on a different platform.
This patch registers two platform dependent classes for runtime
re-initialization and disables the use of `Unsafe` in netty.
Unfortunately when re-initializing `PlatformDependent0` it fails to
properly setup unsafe accesses resulting in `NullPointerExceptions` when
invoking `putByte`.
Disabling unsafe accesses for netty works around this.
The above changes result in Quarkus native applications to respect
arguments like `-Dio.netty.maxDirectMemory=1024` and
`-XX:MaxDirectMemorySize=1g`.
Fixesquarkusio#17839
(cherry picked from commit ca155ca)
0 commit comments