JDK-8269128 : C2: Avoid redundant memory barriers in Unsafe.copyMemory0 intrinsic
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2021-06-22
  • Updated: 2021-06-22
  • Resolved: 2021-06-22
Related Reports
Duplicate :  
Description
Unsafe::copyMemory0 intrinsic unconditionally inserts barriers arounds the call. It is conservative and barriers can be avoided in some cases (similar to what is done for scalar unsafe accesses; e.g., copying between on-heap arrays and off-heap is one of such cases).