JDK-8223239 : Extend arraycopy stub GC interface to allow GC replacement of the whole loop
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86_64,aarch64
  • Submitted: 2019-05-02
  • Updated: 2019-05-02
  • Resolved: 2019-05-02
Related Reports
Duplicate :  
Description
Currently, when doing oop arraycopy from C2 and C1, we call into runtime for pre-barrier, then do the arraycopy as fast-blt-loop, then call into runtime again for post-barrier.

In Shenandoah we would like to call into runtime once, and do the arraycopy in a single-loop, when GC is active, and only do the fast-blt-loop outside of GC.

This requires some GC interface changes to allow skipping the fast-loop when it's not needed, and to also pass the element type for doing the arraycopy loop and checkcasts in runtime.
Comments
Accidentally filed twice.
02-05-2019