Integrated: 8358310: ZGC: riscv, ppc ZPlatformAddressOffsetBits may return a too large value
Axel Boldt-Christmas
aboldtch at openjdk.org
Tue Jun 3 12:17:58 UTC 2025
On Mon, 2 Jun 2025 08:55:02 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
> The way that ZPlatformAddressOffsetBits is implemented on riscv and ppc may result in a return value of 45. This is larger than the max supported value of 44 (because of other internal data structures). This was fixed in [JDK-8330275](https://bugs.openjdk.org/browse/JDK-8330275) for aarch64.
>
> Before [JDK-8350441](https://bugs.openjdk.org/browse/JDK-8350441) the issue on manifested if one tried to select a heap larger than 16 TB (not supported), but after [JDK-8350441](https://bugs.openjdk.org/browse/JDK-8350441) we try to double the heap address space when running on a NUMA machine. So we may now encounter this bug for heaps larger than 8TB (which is supported).
>
> While ZPlatformAddressOffsetBits needs an overhaul. (It was written for non-generational ZGC where we had the three color bits inside the address.) The proposal is that we solve this for ppc and riscv by doing the same thing we did for aarch64 in [JDK-8330275](https://bugs.openjdk.org/browse/JDK-8330275)
This pull request has now been integrated.
Changeset: 46183742
Author: Axel Boldt-Christmas <aboldtch at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/4618374269e8636c772d921ad0c2c2d9e5e3e643
Stats: 10 lines in 2 files changed: 4 ins; 0 del; 6 mod
8358310: ZGC: riscv, ppc ZPlatformAddressOffsetBits may return a too large value
Reviewed-by: eosterlund, mdoerr, fyang
-------------
PR: https://git.openjdk.org/jdk/pull/25578
More information about the hotspot-dev
mailing list