eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 720 forks source link

Optimize unrecognized intrinsic candidates in jdk.misc.Internal.Unsafe #19110

Open jmesyou opened 8 months ago

jmesyou commented 8 months ago

This epic tracks the ongoing work and status of lowering currently unrecognized @IntrinsicCandidate methods in the jdk.internal.misc.Unsafe class in the JIT compiler.

jmesyou commented 7 months ago

The instruction for CLWB was implemented in eclipse/omr#7253. The intention was to lower calls to writeback0 to the CLWB instruction in the x86 backend but support for writeback0 is unnecessary because OpenJ9 has taken a different approach. A native implementation of writebackMemory, the only parent caller of writeback0, is provided for the runtime instead of writeback0. Therefore calls to writeback0 are never made and never need to be recognized nor replaced by the JIT compiler.