Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8223239

Extend arraycopy stub GC interface to allow GC replacement of the whole loop

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • None
    • hotspot
    • None
    • gc
    • x86_64, aarch64
    • generic

      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.

            rkennke Roman Kennke
            rkennke Roman Kennke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: