-
Notifications
You must be signed in to change notification settings - Fork 106
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
8333887: ubsan: unsafe.cpp:247:13: runtime error: store to null pointer of type 'volatile int' #837
Conversation
👋 Welcome back luwang1103! A progress list of the required criteria for merging this PR into |
@luwang1103 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 17 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 |
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
Why bots do not think this is clean? The indenting is not the same as in original patch? Fix up the indenting and force-push. |
Hm, where is copyright header update comes from? This is confusing... To be extra clear, this PR should be exactly like the upstream change: openjdk/jdk@0d3a377, unless there is a good reason to deviate. The indentation is still not fixed, AFAICS. How do you do the backports? Picking up and applying the full changsets, or making the patch by hand? |
In the master repository, there are other modifications to unsafe.cpp. Other modifications do not belong to this bug. What should I do next? This is my first time submitting code, and there are many areas that I am currently studying. Thank you for your guidance. |
Right, so indenting for surrounding code had changed a bit. This is fine, we can make this one into unclean backport. To proceed, I think you need to:
|
Indenting is still not fixed! Please look at the original changeset: openjdk/jdk@0d3a377#diff-acaab5083c410130643986ea5285d68578a4a7cac8c7405a1c33374671752c9dR245-R249 Compare with yours: The indenting should match. |
@luwang1103 Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
Spot the difference, this is original change:
Current PR misses two spaces before
This might sound like odd thing to get right, but matching the indenting exactly would make your follow-up backport in the same place clean. Make sure you have the new hunks exactly the same. |
@luwang1103 Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
|
/approval request The code applies cleanly. Low risk: It is a corner case which is not triggered by the current code. In order to avoid bugs in the future, it is good to backport it. |
@luwang1103 |
|
/integrate |
@luwang1103 |
/sponsor |
Going to push as commit 9a02aa6.
Your commit was automatically rebased without conflicts. |
@shipilev @luwang1103 Pushed as commit 9a02aa6. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
hi @shipilev ,
This pull request contains a backport of commit 0d3a3771 from the master repository.
The commit being backported was authored by Matthias Baesken on 13 Jun 2024.
Thanks!
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/837/head:pull/837
$ git checkout pull/837
Update a local copy of the PR:
$ git checkout pull/837
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/837/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 837
View PR using the GUI difftool:
$ git pr show -t 837
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/837.diff
Webrev
Link to Webrev Comment