Skip to content

Commit 0c027ac

Browse files
authored
Explicitly disable Netty key set replacement
Netty replaces the backing set for the selector implementation. The value of doing this is questionable, and doing this requires permissions that we are not going to grant. This commit explicitly disables this optimization rather than relying on it failing due to lack of permissions. Relates #20249
1 parent 3fcb95b commit 0c027ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +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
62+
# flags to keep Netty from being unsafe
6363
-Dio.netty.noUnsafe=true
64+
-Dio.netty.noKeySetOptimization=true
6465

6566
## heap dumps
6667

0 commit comments

Comments
 (0)