Skip to content

Conversation

@minborg
Copy link
Contributor

@minborg minborg commented May 15, 2025

This PR improves the robustness of tests on slow machines such as "zero" variants. The timeout was increased to 10 minutes for both tests. There are many combinations in TestAccessModes, so the test takes some time even on a fast machine. In StdLibTest, there are numerous native calls, and these can be much slower on "zero" machines. In the latter test class, I made some attempts to improve performance. On my M1 machine, the test was about 10% faster with the changes (but I only did one run, so this might be in the error margin).


Progress

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

Issue

  • JDK-8356706: Foreign tests timeout after passing on linux-x64-zero (Bug - P4) ⚠️ Issue is already resolved. Consider making this a "backport pull request" by setting the PR title to Backport <hash> with the hash of the original commit. See Backports.

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 25248

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

Using diff file

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

Using Webrev

Link to Webrev Comment

static final class StdLibHelper {

final static MethodHandle strcat = abi.downcallHandle(abi.defaultLookup().find("strcat").get(),
static final MethodHandle strcat = abi.downcallHandle(abi.defaultLookup().findOrThrow("strcat"),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Drive-by cleanup to blessed order.

@bridgekeeper
Copy link

bridgekeeper bot commented May 15, 2025

👋 Welcome back pminborg! 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.

static final Linker abi = Linker.nativeLinker();

private StdLibHelper stdLibHelper = new StdLibHelper();
private static final StdLibHelper STD_LIB_HELPER = new StdLibHelper();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The STD_LIB_HELPER is now a constant.

@openjdk
Copy link

openjdk bot commented May 15, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot added the rfr Pull request is ready for review label May 15, 2025
@openjdk
Copy link

openjdk bot commented May 15, 2025

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

  • core-libs

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 openjdk bot added the core-libs core-libs-dev@openjdk.org label May 15, 2025
@mlbridge
Copy link

mlbridge bot commented May 15, 2025

Webrevs

@minborg
Copy link
Contributor Author

minborg commented May 27, 2025

I am closing this PR without integrating, as it has been fixed elsewhere (see issue)

@minborg minborg closed this May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-libs core-libs-dev@openjdk.org rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

1 participant