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
8241086: Test runtime/NMT/HugeArenaTracking.java is failing on 32bit Windows #182
Conversation
👋 Welcome back zzambers! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
@@ -25,6 +25,7 @@ | |||
* @test | |||
* @key nmt jcmd | |||
* @library /testlibrary /testlibrary/whitebox | |||
* @requires vm.bits == 64 |
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.
I don't think this has any effect on JDK 8. AFAIK, vm.bits
is being set in JDK 11+ via test/jtreg-ext/requires/VMProps.java
which isn't available in JDK 8. Have you tested this works?
I think something like this would be suitable here:
if (!Platform.is64Bit()) {
System.out.println("Test requires 64 bits. Skipping...");
return;
}
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.
Oh, you are right (not supported on JDK 8). I ran tests with 32-bit OSes enabled [1] and failure there disappeared, so I considered it working. I haven't realized test was also excluded on 64-bits. (condition was basically treated as always false) Nice find, I'll fix it. Thanks
[1] https://github.com/zzambers/jdk8u-dev/actions/runs/3471605048/jobs/5802167187
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.
But that reminds me, when I doing this backport, I was actually wondering if it is supported on 8, so I grepped jdk8u-dev repo to see if there is some other tests doing this. There is one [2]. And it is indeed also skipped everywhere. So one more test to be fixed was discovered... :)
[2]
* @requires vm.bits == "64" |
Fixed. Tested with 32-bit testing enabled. Passes. (Skipped on 32-bits, no longer skipped on 64-bits.) https://github.com/zzambers/jdk8u-dev/actions/runs/3482910658 |
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.
LGTM.
@zzambers This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
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 4 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@jerboaa) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@jerboaa thanks for the review |
Oh, it does not yet have jdk8u-fix-yes (will need before sponsor) |
/sponsor |
Going to push as commit da0c382.
Your commit was automatically rebased without conflicts. |
Test
hotspot/test/runtime/NMT/HugeArenaTracking.java
(from hotspot/tier1) currently fails on Windows x86. This backport fixes this test to only run on 64-bit archs.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev pull/182/head:pull/182
$ git checkout pull/182
Update a local copy of the PR:
$ git checkout pull/182
$ git pull https://git.openjdk.org/jdk8u-dev pull/182/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 182
View PR using the GUI difftool:
$ git pr show -t 182
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/182.diff