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

[AIX] Dont mix os::dll_load() with direct dlclose() calls

XMLWordPrintable

    • b27
    • aix

        We should not mix os::dll_load() with dlclose(), but should call os::dll_unload(). At the moment this is benign, but this prevents certain type of platforms specific workarounds inside os::dll_load().

        There are two places I see where this happens, both are AIX specific:

        ```
        os/aix/libodm_aix.cpp
        51: dlclose(_libhandle);
        58: if (_libhandle) { dlclose(_libhandle); }

        os/aix/libperfstat_aix.cpp
        117: dlclose(g_libhandle);
        ```

        Also, "void* _libhandle" is a bug: It uses a local variable instead of the class member.

              jkern Joachim Kern
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: