[JMH] test java.lang.foreign.CallOverheadConstant failed for 2 threads config

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      The 4 testcases for the test java.lang.foreign.CallOverheadConstant failed for the 2 thread configuration.
      The failure log looks as:
      java -jar benchmarks.jar -jvmArgs -Djava.library.path=native -f 1 -wi 3 -w 1 -i 1 -r 1 -t 2 CallOverheadConst
      ...
      java.lang.WrongThreadException: Attempted access outside owning thread
              at java.base/jdk.internal.foreign.MemorySessionImpl.wrongThread(MemorySessionImpl.java:322)
              at java.base/jdk.internal.misc.ScopedMemoryAccess$ScopedAccessError.newRuntimeException(ScopedMemoryAccess.java:114)
      ...

      It will good to fix testcases or to limit test by 1 thread only.

            Assignee:
            Unassigned
            Reporter:
            Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: