Skip to content

Commit eb6da69

Browse files
authored
Explicitly tell Netty to not use unsafe
With the security permissions that we grant to Netty, Netty can not access unsafe (because it relies on having the runtime permission accessDeclaredMembers and the reflect permission suppressAccessChecks). Instead, we should just explicitly tell Netty to not use unsafe. This commit adds a flag to the default jvm.options to tell Netty to not look for unsafe. Relates #19786
1 parent c3a5e4f commit eb6da69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

distribution/src/main/resources/config/jvm.options

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
# use our provided JNA always versus the system one
6060
-Djna.nosys=true
6161

62+
# flag to explicitly tell Netty to not use unsafe
63+
-Dio.netty.noUnsafe=true
64+
6265
## heap dumps
6366

6467
# generate a heap dump when an allocation from the Java heap fails

0 commit comments

Comments
 (0)