Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901712

VarHandles, Direct ByteBuffer tests probe the aligned offset in heap buffer, not in direct one

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • None
    • None
    • tools
    • None

        [FAILED] o.o.j.t.atomicity.varHandles.byteArray.big.AddAndGetTest.AddAndGetInt
          (fork: #1, iteration #1, JVM args: [-Xmixed, -Xmixed, -Xmixed, -Xmixed, -server, -Xmixed, -server, -Xmixed])
        Observed state Occurrences Expectation Interpretation
             -1, -2, 0 4,998,733 FORBIDDEN No default case provided, assume FORBIDDEN
             -2, -1, 0 2,989,617 FORBIDDEN No default case provided, assume FORBIDDEN
            -2, -1, -2 0 ACCEPTABLE actor1 execute after actor2
            -1, -2, -2 0 ACCEPTABLE actor1 execute before actor2
            -1, -1, -1 0 FORBIDDEN This won't happen because addAndGet is atomic

      (ETA: 00:00:00) (Rate: 7.40E+08 samples/sec) (Tests: 1 of 1) (Forks: 1 of 1) (Iterations: 1 of 5; 0 passed, 1 failed, 0 soft errs, 0 hard errs)

      Exception in thread "main" java.lang.AssertionError: TEST FAILURES:
      org.openjdk.jcstress.tests.atomicity.varHandles.byteArray.big.AddAndGetTest.AddAndGetInt: Observed forbidden state: -1, -2, 0
      org.openjdk.jcstress.tests.atomicity.varHandles.byteArray.big.AddAndGetTest.AddAndGetInt: Observed forbidden state: -2, -1, 0

      at org.openjdk.jcstress.infra.grading.ExceptionReportPrinter.parse(ExceptionReportPrinter.java:70)
      at org.openjdk.jcstress.JCStress.parseResults(JCStress.java:157)
      at org.openjdk.jcstress.JCStress.run(JCStress.java:135)
      at org.openjdk.jcstress.Main.main(Main.java:60)

            shade Aleksey Shipilev
            ppunegov Pavel Punegov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: