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

Cannot use DllMain in libnet for static builds

XMLWordPrintable

    • b03
    • windows

      To be able to properly support static builds on Windows in JDK-8346377, we cannot use DllMain, for two reasons:

      1) This is not called for statically linked libraries, and
      2) There are multiple DllMain definitions throughout the JDK native libraries, causing name collisions.

      While it could have been possible to keep the DllMain for non-static builds and just use an alternative solution for static builds, I think it is preferable to have a single solution that works as well for both static and dynamic builds.

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: