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

jcstress: Scheduler fails on irregular architectures

XMLWordPrintable

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

      Example log:

      Detecting CPU topology and computing scheduling classes:
        Linux, using /sys/devices/system/cpu
        2 packages, 1 core per package, 1 thread per core

        CPU lists:
          Package #0, Core #0, Threads: 0
          Package #1, Core #1, Threads: 1, 2, 3, 4, 5, 6, 7

        Scheduling classes for matching tests:
          2 actors:
            (PG 0, CG 0), (PG 1, CG 1)

        Hardware CPUs in use: 8, using plain hard busywait.
        Test preset mode: "default"
        Writing the test results to "jcstress-results-2021-06-19-00-31-24.bin.gz"
        Parsing results to "results/"
        Running each test matching ".*" for 1 forks, 5 iterations, 1000 ms each
        Solo stride size will be autobalanced within [10, 10000] elements, but taking no more than 128 Mb.

        Attached the non-interactive output stream.
        Printing the progress line at most every 15000 milliseconds.

      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
      at org.openjdk.jcstress.os.Scheduler.scheduleLocal(Scheduler.java:170)
      at org.openjdk.jcstress.os.Scheduler.tryAcquire(Scheduler.java:75)
      at org.openjdk.jcstress.TestExecutor.runAll(TestExecutor.java:151)
      at org.openjdk.jcstress.JCStress.run(JCStress.java:97)
      at org.openjdk.jcstress.Main.main(Main.java:60)

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: