RFR: 8370978: Zero JVM fails to build on i386 after JDK-8351149
Aleksey Shipilev
shade at openjdk.org
Fri Nov 21 15:04:16 UTC 2025
On Thu, 20 Nov 2025 01:27:01 GMT, Vladimir Petko <vpetko at openjdk.org> wrote:
> This PR partially reverts JDK-8351149 to restore zero build on 32 bit platforms.
>
> Reverted changes to:
> -` os::dll_load`, `os::Linux::dlopen_helper` - the functions required to load the shared libraries
>
> Testing (in Ubuntu 26.04 i386 chroot):
>
> $ sh configure --with-jvm-variants=zero --disable-precompiled-headers --with-jtreg=/home/vladimirp/git/jtreg/build/images/jtreg --disable-warnings-as-errors
> ...
> $ make images
> Building target 'images' in configuration 'linux-x86-zero-release'
> Warning: No SCM configuration present and no .src-rev
> Updating images/sec-bin.zip
> Finished building target 'images' in configuration 'linux-x86-zero-release'
> $
Thanks, that was indeed too far, and Linux x86_32 Zero is supposed to still work.
src/hotspot/os/linux/os_linux.cpp line 1775:
> 1773: #if (defined IA32)
> 1774: static Elf32_Half running_arch_code=EM_386;
> 1775: #elif (defined AMD64) || (defined X32)
Do you need `X32` case here? I don't think anything wants it.
-------------
Marked as reviewed by shade (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/28406#pullrequestreview-3493128857
PR Review Comment: https://git.openjdk.org/jdk/pull/28406#discussion_r2550046862
More information about the hotspot-runtime-dev
mailing list