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
8277299: STACK_OVERFLOW in Java_sun_awt_shell_Win32ShellFolder2_getIconBits #98
Conversation
👋 Welcome back aamarsh! 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. |
@aamarsh 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:
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 118 new commits pushed to the
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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
test/jdk/javax/swing/JFileChooser/FileSystemView/ShellFolderStackOverflow.java
Show resolved
Hide resolved
Hi, we do not touch copyrights in backports. The original patch was correct. |
d7bbe8d
to
263b291
Compare
@GoeLin Thanks for clarifying. I reset to my first commit. The clean tag is back and the PR is ready for review! |
@aamarsh, as it is clean now, you don't need a review. But you need a jdk17u-fix-yes label on the JBS Issue. |
Fix request 17u: This backport avoids a stack overflow in Windows 32 bit binaries, which some external contributors release. Additionally this is a nice change for Windows 64 bit binaries as well, even though the larger stack size has avoided the problem. The risk is low, simply placing two variables on the heap instead of the stack. Additionally, Tier1 and the newly added test passes on Windows after the changes. |
@aamarsh, the comment needs to go to the JBS issue. Just have a look at the other changes recently pushed to 17u-dev. |
/integrate |
@GoeLin Thanks for helping me through the backporting process! I see that the jdk17u-fix-yes tag is now on the JBS issue, so I have integrated my changes. Is there any way you could sponsor this change? Thanks again! |
/sponsor |
Going to push as commit 2965051.
Your commit was automatically rebased without conflicts. |
Makes colorBits and maskBits dynamic variables to force allocation on the heap instead of the stack and avoid a stackoverflow. Also adds a test to confirm this stackoverflow is no longer happening.
Tier1 and the newly added test passes on Windows. Clean backport.
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk17u-dev pull/98/head:pull/98
$ git checkout pull/98
Update a local copy of the PR:
$ git checkout pull/98
$ git pull https://git.openjdk.java.net/jdk17u-dev pull/98/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 98
View PR using the GUI difftool:
$ git pr show -t 98
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk17u-dev/pull/98.diff