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

JMM issue: short loads are non-atomic

    Details

    • Subcomponent:
    • Resolved In Build:
      b07
    • CPU:
      x86, sparc
    • OS:
      linux, solaris

      Backports

        Description

        Originally found with
        https://github.com/shipilev/java-concurrency-torture

        Steps to reproduce:
         $ git clone https://github.com/shipilev/java-concurrency-torture.git
         $ cd java-concurrency-torture.git
         $ mvn clean install
         $ java -jar target/concurrency-torture.jar -t ".*primitiveAtomicity.*ShortAtomicityTest"

        Expected result:
          Only [0, 0] and [-1, -1] states present.

        Actual result:
          [0,0], [-1, -1] are present.
          One of [0, -1] or [-1, 0] states is present, which means the short value was torn away.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vlivanov Vladimir Ivanov
                  Reporter:
                  shade Aleksey Shipilev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: