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

[vector] ZGC: VectorReshape test produces incorrect results with ZGC enabled

XMLWordPrintable

    • 16
    • b35
    • x86, aarch32
    • linux
    • Verified

        Using the attached testcase, I get output similar to the following, but only when ZGC is enabled:

        CompileCommand: compileonly jdk/incubator/vector/ByteVector.fromByteBuffer bool compileonly = true
        WARNING: Using incubator modules: jdk.incubator.vector
        input: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
        Failing with Species[byte, 16, S_128_BIT]->Species[byte, 16, S_128_BIT] (reinterpret), block=16, part=0, origin=0
        expect: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
        output: [0, 0, 2, 2, 0, 4, 2, 6, 0, 0, 2, 2, 0, 4, 2, 6]
        java.lang.Exception: Stack trace
                at java.base/java.lang.Thread.dumpStack(Thread.java:1377)
                at VectorReshapeTest.checkPartialResult(VectorReshapeTest.java:81)
                at VectorReshapeTest.testVectorRebracket(VectorReshapeTest.java:107)
                at VectorReshapeTest.testRebracket128(VectorReshapeTest.java:117)
                at VectorReshapeTest.main(VectorReshapeTest.java:55)


        The testcase has the instructions for compilation and execution.

              jiefu Jie Fu
              smonteith Stuart Monteith
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: