JDK-8241086 : Test runtime/NMT/HugeArenaTracking.java is failing on 32bit Windows
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86
  • Submitted: 2020-03-17
  • Updated: 2024-03-19
  • Resolved: 2020-05-06
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 11 JDK 13 JDK 15 JDK 8 Other
11.0.24-oracleFixed 13.0.6Fixed 15 b23Fixed 8u421Fixed openjdk8u362Fixed
Related Reports
Relates :  
Description
The test runtime/NMT/HugeArenaTracking.java reintroduced with JDK-8234270 fails on Windows 32bit.
On Windows 32 bit the address space is only 2GB if the binaries do not have the LARGEADDRESSAWARE flag set. As the java binary is linked without this flag it cannot allocate more than 2GB.
The test tries to allocate 2GB+ in a loop - this will always fail on Windows 32bit.
I would suggest to problem list the test for Windows 32bit.
Comments
Fix request (8u): Fixes runtime/NMT/HugeArenaTracking.java to only run on 64-bit. Only modifies test, tested.
16-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-dev/pull/182 Date: 2022-11-16 14:02:48 +0000
16-11-2022

Fix request (13u) Requesting backport to 13u, the issue is present there too. The patch applies almost cleanly except for minor context difference in copyright comment.
18-01-2021

jdk11 backport request I would like to have the patch in jdk11 as well, because the issue is present there too. The patch applies cleanly (except the copyright comment).
07-07-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/c56e9a558f6b User: zgu Date: 2020-05-06 20:02:36 +0000
06-05-2020

I thought Linux, by default, split the address space in to 3GB for user and 1GB for system? But simplest fix is to just restrict to 64-bit. Though I'll leave that for NMT folk to decide.
17-03-2020

Just for the record: The test could run on Linux 32 bit. On Linux 32 bit executables can use up to 4GB adress space - not sure about other 32bit operating systems. But it might be best to only let it run on 64bit.
17-03-2020

The test should be modified to only run on 64-bit using @requires.
17-03-2020