Illustration einer tropischen Insel mit Palmen und einem hohen Berg

Java Blog für Programmierer

JEP 165: JIT-Steuerung pro Methode

· Christian Ullenboom

TIL: JEP 165 (Compiler Control) https://openjdk.org/jeps/165 lets you tune the JIT per method — disable vectorization, control inlining, print assembly, disable specific intrinsics, and more. Example:

[
 {
 "match": "com/example/MyClass.myMethod(I)V",
 "c2": {
 "Vectorize": false
 }
 }
]

Start with -XX:CompileCommandFile=directives.json While writing a new book on SIMD and the Java Vector API I always wondered how to isolate auto-vectorization at the method level. Turns out there's a whole toolbox here.

Kategorien: Java News

← Alle Beiträge