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

Hotspot's libsvml.so may conflict with user dependency

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      17
    • Resolved In Build:
      b23
    • CPU:
      x86

      Backports

        Description

        When the jdk.incubator.vector module is linked in a JDK image then the library libsvml.so is present and loaded in phase 2 of stub generation.

        This occurs even if the jdk.incubator.vector module is not visible, since stub generation occurs before module definitions when the JVM boots. So we cannot predicate the library loading and stub generation on the UseVectorStubs flag.

        This may cause conflicts with user applications using JNI that load (indirectly) libsvml.so distributed with Intel's MKL library.

        For more details see:

        https://mail.openjdk.java.net/pipermail/panama-dev/2021-October/015536.html

        I have logged this against hotspot/runtime for now, but it may be some or all of the solution is build/infrastructure based e.g. we could rename the library.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sviswanathan Sandhya Viswanathan
                Reporter:
                psandoz Paul Sandoz
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: