adoptium / adoptium/aqa-tests

New jdk24+ testcase runtime/jni/checked/TestLargeUTF8Length.java requires 9Gb heapspace

Open
#6,666 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

New testcase runtime/jni/checked/TestLargeUTF8Length.java introduced in jdk-24+14, requires 9Gb of heap and will fail on most Adoptium nodes, on most platforms.
https://github.com/openjdk/jdk25u/blob/9d467de7d85c8443006c5d862a46e50bd507deac/test/hotspot/jtreg/runtime/jni/checked/TestLargeUTF8Length.java#L67
Ref: https://github.com/adoptium/aqa-tests/issues/6664#issuecomment-3410775104
```
01:30:16.496 # There is insufficient memory for the Java Runtime Environment to continue.
01:30:16.496 # Native memory allocation (mmap) failed to map 9663676416 bytes. Error detail: committing reserved memory.
01:30:16.496 # An error report file with more information is saved as:
01:30:16.496 # /home/jenkins/workspace/Grinder/aqa-tests/TKG/output_17607104846128/hotspot_runtime_0/work/scratch/1/hs_err_pid29465.log
01:30:16.496 ];
01:30:16.496 stderr: [OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000005c0000000, 9663676416, 0) failed; error='Not enough space' (errno=12)
```

Contributor guide

Open the contributing guide

Research direction

Start with test/hotspot/jtreg/runtime/jni/checked/TestLargeUTF8Length.java, especially line 67, and run the testcase under the memory limits of a typical Adoptium node. Compare its heap requirement with the reported 9 GB allocation and verify that the adjusted test passes without exhausting available memory.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.