RFR: Cleaner GHA build of hermetic-java-runtime branch

Severin Gehwolf sgehwolf at openjdk.org
Tue Apr 29 08:27:03 UTC 2025


On Mon, 28 Apr 2025 19:08:42 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:

>> Please review this simple PR which fixes build issues seen on GHA. Before this PR we see build failures in various Linux cross-builds and windows builds. This PR should fix those. Note: There are still GHA test failures, but at least we can build the branch on the main 3 platforms.
>> 
>> Thoughts?
>
> src/hotspot/share/utilities/globalDefinitions.hpp line 1031:
> 
>> 1029: // Redefine Thread as BaseThread to avoid duplicate symbol issues for
>> 1030: // JDK static builds. See runtime/thread.hpp for Thread class.
>> 1031: #define Thread HotspotBaseThread
> 
> This change and the one in src/hotspot/os_cpu/linux_aarch64/threadLS_linux_aarch64.S are related to https://bugs.openjdk.org/browse/JDK-8311846. There were discussions on https://github.com/openjdk/jdk/pull/17456 (closed without integrating), but we don't yet have a acceptable solution moving forward.
> 
> Should we leave the patch in the branch until we identify a proper solution?

Is this duplicate symbol issue still a problem? If so, how would I be able to reproduce? This breaks cross compiled code. For example see: https://github.com/jerboaa/leyden/actions/runs/14613421232/job/40996157052

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

PR Review Comment: https://git.openjdk.org/leyden/pull/63#discussion_r2065775137


More information about the leyden-dev mailing list