RFR: 8352800: [PPC] OpenJDK fails to build on PPC after JDK-8350106

Aleksey Shipilev shade at openjdk.org
Tue Mar 25 19:19:14 UTC 2025


On Tue, 25 Mar 2025 08:12:37 GMT, Vladimir Petko <vpetko at openjdk.org> wrote:

> Add missing header to resolve the compilation failure.
> 
> Testing:
>  - built openjdk in PPC qemu vm.

src/hotspot/os_cpu/linux_ppc/javaThread_linux_ppc.cpp line 27:

> 25: 
> 26: #include "memory/metaspace.hpp"
> 27: #include "os_linux_ppc.inline.hpp"

So you need to reach `os::Linux::ucontext_get_sp`, right? Then the header that contains it, is a generic `os_linux.hpp`. You get it transitively by including `os_linux_ppc.inline.hpp`, but there is no need to rely on this transitivity.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24216#discussion_r2012790322


More information about the hotspot-runtime-dev mailing list