RFR: 8365606: Container code should not be using jlong/julong
Severin Gehwolf
sgehwolf at openjdk.org
Tue Sep 9 09:51:59 UTC 2025
On Tue, 9 Sep 2025 08:13:05 GMT, Andrew Haley <aph at openjdk.org> wrote:
> On some 32-bit systems this PR moves memory sizes from 64 bits, where they can't overflow, to 32 bits, where they can. While I've looked at this carefully, I can't exclude the possibility that overflow may occur.
>
> While we could pick through every change line by line, wouldn't it be safer simply to stay with 64-bit sizes on all systems?
I agree. It's a valid concern. But this PR is basically an extension to [JDK-8357086](https://bugs.openjdk.org/browse/JDK-8357086). That one is already in JDK 26. It's also worth noting that 32-bit support is [on its way out](https://mail.openjdk.org/pipermail/jdk-dev/2025-April/009909.html).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27125#issuecomment-3269849969
More information about the hotspot-dev
mailing list