-
Notifications
You must be signed in to change notification settings - Fork 152
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
8067941: [TESTBUG] Fix tests for OS with 64K page size. #71
Conversation
👋 Welcome back dongbohe! 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
|
@dongbohe This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
@dongbohe This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
The dependent pull request has now been integrated, and the target branch of this pull request has been updated. This means that changes from the dependent pull request can start to show up as belonging to this pull request, which may be confusing for reviewers. To remedy this situation, simply merge the latest changes from the new target branch into this pull request by running commands similar to these in the local repository for your personal fork: git checkout 8067941
git fetch https://git.openjdk.org/jdk8u-dev master
git merge FETCH_HEAD
# if there are conflicts, follow the instructions given by git merge
git commit -m "Merge master"
git push |
@dongbohe This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
SKARA seems to be confused by the closure of #66 due to timeout, not integration. Please re-open that one so we can correctly integrate it as a dependency for this one. |
Filed https://bugs.openjdk.org/browse/SKARA-1568 for the issue with SKARA treating a timed-out PR as an integrated PR |
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.
Changes make sense to me, given the bump to AArch64 stack sizes in JDK-8173339
I assume this doesn't affect other architectures, as we don't have JDK-8159335 which bumped the stack sizes on ppc64?
8u now:
$ grep -r 'StackShadowPages' hotspot/|grep pd_global
hotspot/src/cpu/aarch64/vm/globals_aarch64.hpp:define_pd_global(intx, StackShadowPages, 20 DEBUG_ONLY(+5));
hotspot/src/cpu/sparc/vm/globals_sparc.hpp:define_pd_global(intx, StackShadowPages, 10 DEBUG_ONLY(+1));
hotspot/src/cpu/sparc/vm/globals_sparc.hpp:define_pd_global(intx, StackShadowPages, 3 DEBUG_ONLY(+1));
hotspot/src/cpu/x86/vm/globals_x86.hpp:define_pd_global(intx, StackShadowPages, NOT_WIN64(20) WIN64_ONLY(6) DEBUG_ONLY(+2));
hotspot/src/cpu/x86/vm/globals_x86.hpp:define_pd_global(intx, StackShadowPages, 4 DEBUG_ONLY(+5));
hotspot/src/cpu/zero/vm/globals_zero.hpp:define_pd_global(intx, StackShadowPages, 5 LP64_ONLY(+1) DEBUG_ONLY(+3));
hotspot/src/os_cpu/aix_ppc/vm/globals_aix_ppc.hpp:define_pd_global(intx, StackShadowPages, 6 DEBUG_ONLY(+2));
hotspot/src/os_cpu/linux_ppc/vm/globals_linux_ppc.hpp:define_pd_global(intx, StackShadowPages, 6 DEBUG_ONLY(+2));
11u now:
$ grep -r 'define DEFAULT_STACK_SHADOW_PAGES' ../jdk11u-dev/src/hotspot
../jdk11u-dev/src/hotspot/cpu/x86/globals_x86.hpp:#define DEFAULT_STACK_SHADOW_PAGES (NOT_WIN64(20) WIN64_ONLY(7) DEBUG_ONLY(+2))
../jdk11u-dev/src/hotspot/cpu/x86/globals_x86.hpp:#define DEFAULT_STACK_SHADOW_PAGES (4 DEBUG_ONLY(+5))
../jdk11u-dev/src/hotspot/cpu/aarch64/globals_aarch64.hpp:#define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+5))
../jdk11u-dev/src/hotspot/cpu/arm/globals_arm.hpp:#define DEFAULT_STACK_SHADOW_PAGES (5 DEBUG_ONLY(+1))
../jdk11u-dev/src/hotspot/cpu/ppc/globals_ppc.hpp:#define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+2))
../jdk11u-dev/src/hotspot/cpu/s390/globals_s390.hpp:#define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+4))
../jdk11u-dev/src/hotspot/cpu/sparc/globals_sparc.hpp:#define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+2))
../jdk11u-dev/src/hotspot/cpu/zero/globals_zero.hpp:#define DEFAULT_STACK_SHADOW_PAGES (5 LP64_ONLY(+1) DEBUG_ONLY(+3))
@dongbohe 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 no new commits pushed to 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 (@gnu-andrew) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Yes, theoretically this does not affect other architectures. |
But we need to explain the impact of JDK-8173339 in the jdk8u release. The minimum value of xss on Aarch64 is changed from 164k to 228k on 4k page size(328k->456k on 64k page size). If the user-specified xss is smaller than the current minimum value, the value of xss needs to be adjusted to be larger than the minimum required value to prevent JVM startup failure. |
/integrate |
8u-dev is currently closed for rampdown. |
/sponsor |
Going to push as commit fa340ab.
Your commit was automatically rebased without conflicts. |
@gnu-andrew @dongbohe Pushed as commit fa340ab. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi,
I would like to backport this patch to fix tests for OS with 64K page size.
Patch does not apply cleanly:
JDK-8062854[1] move StackOverflowBug.java and Test8009761.java to corresponding subfolders.
Test8009761.java context is different because JDK-8021775[2] and JDK-8011397[3] doesn't in jdk8u.
Change to TestGCLogMessages.java is excluded because it was added in JDK-8027962[4].
Chnage to WBStackSize.java is excluded because JDK-8032970[5] does not exist in 8.
I changed Xss in StackOverflowBug.java, Test8009761.java, TestRecursiveReplacedException.java,
StackOverflowGuardPagesOff.java, TestStackBangMonitorOwned.java and TestStackBangRbp.java from
392k to 512k according to JDK-8159335[6], because JDK-8173339[7] changed StackShadowPages to 20, xss needs at least 456k.
Testing: Performed full jtreg test aarch64-linux-gnu platforms with 64k page size.
Checked that StackOverflowBug.java, Test8009761.java, TestRecursiveReplacedException.java,
StackOverflowGuardPagesOff.java, TestStackBangMonitorOwned.java, TestStackBangRbp.java,
TestHumongousAllocInitialMark.java, TestCMSHeapSizeFlags.java, TestG1HeapSizeFlags.java,
TestParallelHeapSizeFlags.java, TestSerialHeapSizeFlags.java fails without the patch
and passes with the patch on Aarch64 with 64K page size.
[1] https://bugs.openjdk.java.net/browse/JDK-8062854
[2] https://bugs.openjdk.java.net/browse/JDK-8021775
[3] https://bugs.openjdk.java.net/browse/JDK-8011397
[4] https://bugs.openjdk.java.net/browse/JDK-8027962
[5] https://bugs.openjdk.java.net/browse/JDK-8032970
[6] https://bugs.openjdk.java.net/browse/JDK-8159335
[7] https://bugs.openjdk.java.net/browse/JDK-8173339
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev pull/71/head:pull/71
$ git checkout pull/71
Update a local copy of the PR:
$ git checkout pull/71
$ git pull https://git.openjdk.org/jdk8u-dev pull/71/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 71
View PR using the GUI difftool:
$ git pr show -t 71
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/71.diff