JDK-8346605 : AIX fastdebug build fails in memoryReserver.cpp after JDK-8345655
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 25
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • CPU: ppc
  • Submitted: 2024-12-19
  • Updated: 2025-01-05
  • Resolved: 2024-12-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25 b04Fixed
Related Reports
Relates :  
Description
After  "8345655: Move reservation code out of ReservedSpace"  the AIX fastdebug build fails with 

/priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-dbg/jdk/src/hotspot/share/memory/memoryReserver.cpp:513:26: error: incomplete type 'os::Aix' named in nested name specifier
        AIX_ONLY(&& (os::Aix::supports_64K_mmap_pages() || os::vm_page_size() == 4*K))) {
                     ~~~~^~~~~
/priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-dbg/jdk/src/hotspot/share/utilities/macros.hpp:399:24: note: expanded from macro 'AIX_ONLY'
#define AIX_ONLY(code) code
                       ^~~~
/priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-dbg/jdk/src/hotspot/share/runtime/os.hpp:1024:9: note: forward declaration of 'os::Aix'
  class Aix;
Comments
Changeset: 85e024d9 Branch: master Author: Matthias Baesken <mbaesken@openjdk.org> Date: 2024-12-20 07:45:40 +0000 URL: https://git.openjdk.org/jdk/commit/85e024d92dde5ef9c375a27af57c7df177369557
20-12-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22830 Date: 2024-12-19 14:47:40 +0000
19-12-2024

The issue only shows up when configuring with "--disable-precompiled-headers" .
19-12-2024

Would it be possible to fix this by adding an os:: abstraction instead of simply including an AIX include into the shared code?
19-12-2024