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

java_lang_Class::array_klass should be array_klass_acquire

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      Ordering is important for this field. Most reads are done by the compiled code which generate code that maintain dependent loads (see RFR thread)
      http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-July/027572.html

      The only use for java_lang_Class::array_klass is for printing but should use load acquire for consistency and in case of future use.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                coleenp Coleen Phillimore
                Reporter:
                coleenp Coleen Phillimore
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: