openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Optimize OpenJDK VarHandle operation methods

Open nbhuiyan opened this issue 10 months ago • 6 comments

VarHandle operation methods are mostly calls to Unsafe methods, which under certain circumstances can be folded into simple loads and stores in UnsafeFastPath as we can determine the object base and offsets at compile time. In other cases, we can unlock the fast paths for the Unsafe operations by setting the appropriate flags for CodeGen to inline the intrinsics if the platform supports the operations.

~In draft state while I perform further testing and performance investigations.~

nbhuiyan avatar Mar 26 '24 20:03 nbhuiyan