-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8356706: Foreign tests timeout after passing on linux-x64-zero #25248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 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"), |
There was a problem hiding this comment.
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.
|
👋 Welcome back pminborg! A progress list of the required criteria for merging this PR into |
| static final Linker abi = Linker.nativeLinker(); | ||
|
|
||
| private StdLibHelper stdLibHelper = new StdLibHelper(); | ||
| private static final StdLibHelper STD_LIB_HELPER = new StdLibHelper(); |
There was a problem hiding this comment.
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.
|
❗ This change is not yet ready to be integrated. |
|
I am closing this PR without integrating, as it has been fixed elsewhere (see issue) |
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. InStdLibTest, 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
Issue
Backport <hash>with the hash of the original commit. See Backports.Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25248/head:pull/25248$ git checkout pull/25248Update a local copy of the PR:
$ git checkout pull/25248$ git pull https://git.openjdk.org/jdk.git pull/25248/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25248View PR using the GUI difftool:
$ git pr show -t 25248Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25248.diff
Using Webrev
Link to Webrev Comment