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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • 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.

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

              Created:
              Updated: