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

java_lang_Class::array_klass should be array_klass_acquire

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • None
    • hotspot
    • None
    • b21

      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.

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

              Created:
              Updated:
              Resolved: