JDK-8275172 : Investigate better field access performance by refining bytecode shapes
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 18
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2021-10-12
  • Updated: 2024-10-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
JEP 416 replaces the old implementation using Unsafe operation for field access with MethodHandle (VarHandle does not have customization which shows performance difference in microbenchmark).

Vladimir Ivanov suggests an idea to refine bytecode shapes for field access to enable concrete MethodHandle or VarHandle be reliably optimized by JIT irrespective of whether receiver is constant or not.