RFR: 8313277: Resolve multiple definition of 'normalize' when statically linking JDK native libraries with user code

Jiangli Zhou jiangli at openjdk.org
Thu Aug 31 15:49:00 UTC 2023


On Thu, 31 Aug 2023 04:53:26 GMT, David Holmes <dholmes at openjdk.org> wrote:

> No not namespaces, just by using C++ so it a member function, then C++ name mangling would mean the symbol would be different to some same-named function in some other library - in essence the class name part of the symbol would provide the "unique" prefix.

Thanks for the clarification. Yeah, C++ name mangling indeed helps in many cases. For hotspot code, we've only seen very few issues where the class names are the same, such as StringTable and Thread (with pending OpenJDK bugs filed already).

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15477#issuecomment-1701292028


More information about the serviceability-dev mailing list