-
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
8074860: Structured Exception Catcher missing around CreateJavaVM on Windows #449
Conversation
👋 Welcome back fthevenet! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue and summary from the original commit. |
Since the back port was not clean, could you describe what the delta is? |
Hi Frederic, It looks okay. If we have the time, to be sure, could you please do the following test: apply the following patch:
and run this without and without this backport. Then test this by running I expect:
Then we know for sure this works. Thank you! |
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.
Patch looks clean code-wise. The delta is mostly copyright headers (including os_windows.hpp
already having a newer date thanks to JDK-8183925) and indentation. I do notice there is an additional change to the formatting of HOTSPOT_JNI_CREATEJAVAVM_ENTRY
which makes it match the context of the patch. I don't see a problem with that.
|
Yes, it is good form in these cases to describe what changes you had to make in the backport. Otherwise, the reviewers have to work this out for themselves and make assumptions as to why you made certain decisions. |
I'd like Thomas' ack on this one as well. |
@gnu-andrew |
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.
Good. Thanks for the speedy backport work.
BTW, @gnu-andrew, should we do something about the failing security tests that make everything red? Maybe at least exclude them? |
Conflicts arose from changes that were introduced in the target at a latter date and therefore not present in the original patch. I opted to keep things the same as they currently were and only add new lines from the patch, with three notable exceptions:
|
/approval request The motivation for this backport is to help reduce the number of occurrences where a VM might terminate immediately without writing an error log Windows, making root cause analysis very difficult in such cases. |
NB: I am planning on conducting the tests suggested by @tstuefe before I integrate this. |
@fthevenet |
/approve yes |
@gnu-andrew |
@fthevenet 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, @tstuefe) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
I was hoping there was a simple solution to fixing them, but I can't see anything obvious. Frederic, did you get anywhere? I can propose a temporary exclusion so it's not failing every PR. |
To follow-up: I completed the test proposed by @tstuefe and I can confirm that:
|
/integrate |
@fthevenet |
/sponsor |
Going to push as commit ae516a3. |
@tstuefe @fthevenet Pushed as commit ae516a3. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi,
This is a backport of JDK-8082592 which adds Structured Exception Handling (SEH) to guard 'JNI_CreateJavaVM' on Windows.
The motivation for this backport is to help reduce the number of occurrences where a VM might terminate immediately without writing an error log Windows, making root cause analysis very difficult in such cases.
In addition, I plan to also backport JDK-8186199 as a follow-up, which does something similar to guard 'JNI_DestroyJavaVM'.
Thanks!
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/449/head:pull/449
$ git checkout pull/449
Update a local copy of the PR:
$ git checkout pull/449
$ git pull https://git.openjdk.org/jdk8u-dev.git pull/449/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 449
View PR using the GUI difftool:
$ git pr show -t 449
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/449.diff
Webrev
Link to Webrev Comment