Skip to content

Commit 0960480

Browse files
authored
Add JIT compiler directives to workaround performance regression in memory segment access in JDK 23 (#90)
1 parent b353c19 commit 0960480

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cars/v1/vanilla/templates/config/jvm.options

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
# result in less optimal vector performance
6565
20-:--add-modules=jdk.incubator.vector
6666

67+
# Required to workaround performance issue in JDK 23, https://github.com/elastic/elasticsearch/issues/113030
68+
23:-XX:CompileCommand=dontinline,java/lang/invoke/MethodHandle.setAsTypeCache
69+
23:-XX:CompileCommand=dontinline,java/lang/invoke/MethodHandle.asTypeUncached
70+
6771
# Lucene 10 testing: apply MADV_NORMAL advice to enable more aggressive readahead
6872
-Dorg.apache.lucene.store.defaultReadAdvice=normal
6973

0 commit comments

Comments
 (0)