-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8342860: Fix more NULL usage backsliding #21826
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
Conversation
|
Hi @theoweidmannoracle, welcome to this OpenJDK project and thanks for contributing! We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user theoweidmannoracle" as summary for the issue. If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing |
|
@theoweidmannoracle 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 61 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. Possible candidates are the reviewers of this PR (@SoniaZaldana, @jdksjolen, @kimbarrett, @TheShermanTanker, @tschatzl) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
@theoweidmannoracle The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
|
/covered Oracle Employee |
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 am not a Reviewer but I left a small comment.
Cheers!
Webrevs
|
|
Hi @theoweidmannoracle, I think the GHA tests are not running because you haven't enabled GHA on your personal fork. See https://wiki.openjdk.org/display/SKARA/Testing for a bit more info. |
|
Hi @SoniaZaldana, thanks for pointing that out. I enabled the tests now, but it seems there's no way to run them except for pushing new changes. I did run Oracle's internal testing, though. |
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.
Thank you, these changes looks good to me.
You can try syncing your fork and that should trigger GHA. |
|
@SoniaZaldana Thanks for the tip! |
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.
Can you use the (updated) regex in the JBS issue description to verify the only
remaining "NULL"s in src/hotspot are jvmti.{xml,xsl} and
globalDefinitons_{gcc,visCPP}.hpp?
There are also some new NULLs in test/hotspot.
./jtreg/serviceability/jvmti/GetMethodDeclaringClass/libTestUnloadedClass.cpp
./jtreg/serviceability/jvmti/vthread/VThreadEventTest/libVThreadEventTest.cpp
There are a couple more (after filtering out java and C source files) that I think
shouldn't be changed.
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.
Can you use the (updated) regex in the JBS issue description to verify the
only remaining "NULL"s in src/hotspot are the jvmti.{xml,xls} files and the
globalDefinitions_{gcc,visCPP}.hpp files?
There are also some NULLs recently introduced in test/hotspot:
./jtreg/serviceability/jvmti/GetMethodDeclaringClass/libTestUnloadedClass.cpp
./jtreg/serviceability/jvmti/vthread/VThreadEventTest/libVThreadEventTest.cpp
(Found by applying the same regex to test/hotspot, and then removing .java and
.c files.)
There are a few other files in test/hotspot containing NULLs:
./jtreg/vmTestbase/nsk/share/jni/README
./jtreg/vmTestbase/nsk/share/jvmti/README
These are documentation files with examples written in C, so should not be changed.
./jtreg/vmTestbase/nsk/share/native/nsk_tools.hpp
In a comment describing a string to be used for printing. Uses would need to
be examined to ensure it's okay to change the string used for a null value.
I think I planned to do this as a followup to JDK-8324799, and then forgot.
I'd be okay with doing something about this being separate from the current
PR. While the necessary textual changes are probably small, there's a lot of
uses to examine to be sure a change is okay.
To manually trigger GHA tests:
|
@kimbarrett I fixed the backslides in the *.cpp files you mentioned. The egrep outputs are now: and |
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.
Looks good.
The grep results are exactly as expected. Thanks for checking that. Now if we can
just get the build to start checking for us, we can stop needing these periodic cleanups.
I forget whether a JBS issue has been filed for that. If not, I will do so.
II've filed these followup issues: |
|
@jdksjolen @TheShermanTanker It would be great if you could also take another look at the latest changes I made. Thanks! |
|
/integrate |
|
@theoweidmannoracle |
|
/sponsor |
|
Going to push as commit 7d6a2f3.
Your commit was automatically rebased without conflicts. |
|
@TheShermanTanker @theoweidmannoracle Pushed as commit 7d6a2f3. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
NULLin code tonullptrProgress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21826/head:pull/21826$ git checkout pull/21826Update a local copy of the PR:
$ git checkout pull/21826$ git pull https://git.openjdk.org/jdk.git pull/21826/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 21826View PR using the GUI difftool:
$ git pr show -t 21826Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21826.diff
Using Webrev
Link to Webrev Comment