Skip to content

8383850: Move TestLargeUTF8Length.java to resourcehogs#31038

Open
jsikstro wants to merge 1 commit intoopenjdk:masterfrom
jsikstro:JDK-8383850_TestLargeUTF8Length_resourcehogs
Open

8383850: Move TestLargeUTF8Length.java to resourcehogs#31038
jsikstro wants to merge 1 commit intoopenjdk:masterfrom
jsikstro:JDK-8383850_TestLargeUTF8Length_resourcehogs

Conversation

@jsikstro
Copy link
Copy Markdown
Member

@jsikstro jsikstro commented May 5, 2026

Hello,

This PR moves test/hotspot/jtreg/runtime/jni/checked/TestLargeUTF8Length.java and its native counterpart into the resourcehogs test folder.

TestLargeUTF8Length.java requires a large amount of memory and runs its sub-VM with -Xms9G -Xmx9G. The increased memory pressure on the machine from this test can negatively affect other tests running concurrently.

We've seen failures in other tests caused by TestLargeUTF8Length.java running simultaneously on a machine with Automatic Heap Sizing, but the move also makes sense right now in mainline because of the test's high memory requirement.

One impact of this change is that TestLargeUTF8Length.java is no longer included in the hotspot_runtime test group, but in hotspot_resourcehogs instead. This is fine as long as CI testing and other regular testing runs both groups periodically.

Testing:

  • I've verified that the test is runnable in its new location, and that it is included in the hotspot_resourcehogs test group.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8383850: Move TestLargeUTF8Length.java to resourcehogs (Enhancement - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31038/head:pull/31038
$ git checkout pull/31038

Update a local copy of the PR:
$ git checkout pull/31038
$ git pull https://git.openjdk.org/jdk.git pull/31038/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 31038

View PR using the GUI difftool:
$ git pr show -t 31038

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31038.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented May 5, 2026

👋 Welcome back jsikstro! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 5, 2026

@jsikstro This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8383850: Move TestLargeUTF8Length.java to resourcehogs

Reviewed-by: aboldtch, jsjolen

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 5 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk Bot added the hotspot-runtime hotspot-runtime-dev@openjdk.org label May 5, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 5, 2026

@jsikstro The following label will be automatically applied to this pull request:

  • hotspot-runtime

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 5, 2026

The total number of required reviews for this PR has been set to 2 based on the presence of this label: hotspot-runtime. This can be overridden with the /reviewers command.

@openjdk openjdk Bot added the rfr Pull request is ready for review label May 5, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented May 5, 2026

Webrevs

Copy link
Copy Markdown
Member

@xmas92 xmas92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

Copy link
Copy Markdown
Contributor

@johan-sjolen johan-sjolen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, LGTM.

@openjdk openjdk Bot added the ready Pull request is ready to be integrated label May 5, 2026
@Arraying
Copy link
Copy Markdown
Member

Arraying commented May 5, 2026

The change is very reasonable, but why does the test @requires os.maxMemory > 15g? Do we eat memory somewhere in the native code? Could this be reduced?

@jsikstro
Copy link
Copy Markdown
Member Author

jsikstro commented May 5, 2026

The change is very reasonable, but why does the test @requires os.maxMemory > 15g? Do we eat memory somewhere in the native code? Could this be reduced?

That's actually a good point. @requires os.maxMemory > 15g was added in JDK-8370646 since the test couldn't be run concurrently on machines with lower memory than that.

Now that we're moving the test to resourcehogs/ we could lower this requirement a bit if we want since the test will run serially, but still leave some room for other "stuff" on the machine. Maybe 12 or 13 gigabyte is a good number? But leaving it at 15 doesn't seem like a big problem to me either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot-runtime hotspot-runtime-dev@openjdk.org ready Pull request is ready to be integrated rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

4 participants