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

ZGC: array_copy_requires_gc_barriers too strict

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • hotspot
    • b25

    Description

      While doing the c2 TOI for the GC team I was surprised by an arraycopy clone that was eliminated with G1 but not with ZGC.

      Further investigation revealed that array_copy_requires_gc_barriers has been interpreted too strict. During parse and optimization phase it should return false - no special handling is needed. When deconstructing an arraycopy the proper barriers are added to the loads.

      Only during expansion, when the the correct arraycopy call must be used, must array_copy_requires_gc_barriers return true.

      Attachments

        Issue Links

          Activity

            People

              neliasso Nils Eliasson (Inactive)
              neliasso Nils Eliasson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: