Inicio Information Technology JDK 24: The brand new options in Java 24

JDK 24: The brand new options in Java 24

0
JDK 24: The brand new options in Java 24



The vector API is designed to specific vector communications that reliably compile at runtime to optimum vector directions on supported CPU architectures, thus attaining efficiency superior to equal scalar computations. The vector API beforehand was incubated in JDK 16 by way of JDK 23. Targets of the proposal embody clearly and concisely expressing a variety of vector computations in an API that’s platform-agnostic, that gives dependable runtime compilation and efficiency on x64 and AArch54 architectures, that degrades gracefully and nonetheless capabilities when a vector computation can’t be expressed at runtime, and that aligns with Project Valhalla, leveraging enhancements to the Java object mannequin.

The class-file API, beforehand previewed in JDK 22 and JDK 23, can be finalized in JDK 24, with minor adjustments. This API offers a normal API for parsing, producing, and reworking Java class information. It goals to offer an API for processing class information that tracks the category file format outlined by the Java Virtual Machine specification. A second purpose is to allow JDK elements emigrate to the usual API, and finally take away the JDK’s inside copy of the third-party ASM library. Adjustments for the reason that second preview embody a renaming of enum values, removing of some fields, the addition of strategies and technique overloads, strategies renamed, and removing of interfaces and strategies deemed pointless.

Late barrier expansion for the G1 garbage collector is meant to simplify the implementation of G1’s obstacles by shifting their growth from early within the C2 compilation pipeline to later. The obstacles document details about software reminiscence accesses. Targets embody decreasing the execution time of C2 compilation when utilizing the G1 collector, making G1 obstacles understandable to HotSpot builders who lack a deep understanding of C2, and guaranteeing that C2 preserves invariants concerning the relative ordering of reminiscence accesses, safepoints, and obstacles. A fourth characteristic is preserving the standard of C2-generated JIT (just-in-time)-compiled code, by way of pace and dimension.

DEJA UNA RESPUESTA

Por favor ingrese su comentario!
Por favor ingrese su nombre aquí