Please review this PR with a simple solution for resolving duplicate `Thread` 
symbol issue. In https://github.com/openjdk/jdk/pull/14808 comments, there was 
an alternative suggestion to redefine the symbol at build time, such as  
using`-DThread=HotSpotThread`. That would not address issues when symbol were 
references as string literals. https://github.com/openjdk/jdk/pull/14808 also 
discussed using namespace for hotspot code, which can have multiple 
benefits/motivations. We could explore further using namespace with more 
consensus on that approach.

Contributed by Chuck Rasbold and @jianglizhou.

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

Commit messages:
 - 8311846: Resolve duplicate 'Thread' related symbols with JDK static linking

Changes: https://git.openjdk.org/jdk/pull/17456/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17456&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8311846
  Stats: 10 lines in 4 files changed: 5 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/17456.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17456/head:pull/17456

PR: https://git.openjdk.org/jdk/pull/17456

Reply via email to