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

Shenandoah: Stronger invariant for object-arraycopy

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 8-shenandoah, 11-shenandoah, 14
    • 14
    • hotspot
    • gc
    • b15
    • generic
    • generic

    Description

      Currently, arraycopy operations can cause temporary from-space-references in the destination array. Those would be subsequently updated by an arraycopy-post-barrier, but it's awkward because this temporary from-space references need to be dealt with, e.g. in the CAS-obj barrier, and a few other places.
      We can update the src array before copying, and therefore ensure to never see a from-space-reference in the dst array, ever. This opens up a couple of opportunities for simplification and optimization.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: