Skip to content
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

Remove NULL check for Self() in TreeTop::join #4836

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

tuckermiles70
Copy link
Contributor

@tuckermiles70 tuckermiles70 commented Feb 14, 2020

OMR::TreeTop::join() checks if self() is NULL [1], which is odd
because it never makes sense to call a member function on a NULL
object. Such calls are undefined behaviour.

Closes: #4835
Signed-off-by: Tucker tuckermiles70@gmail.com

@andrewcraik
Copy link
Contributor

@genie-omr build all

@andrewcraik
Copy link
Contributor

@tuckermiles70 please ensure you have signed the ECA and that you sign your commits - see the contributing guide in the docs directory for details.

@tuckermiles70
Copy link
Contributor Author

tuckermiles70 commented Feb 18, 2020

@andrewcraik Sorry about that, should be all good now.

@fjeremic fjeremic self-assigned this Feb 18, 2020
@fjeremic
Copy link
Contributor

fjeremic commented Feb 18, 2020

@tuckermiles70 thanks for your first contribution. The ECA check has failed again due to the merge commit added to the branch (8bddb1e). The ECA requires that every commit be signed off. The fix is simple. Just squash the entire change into a single commit.

The commit message could be improved slightly [1] to be consistent with the rest of the contributions. Here is a potential example in imperative mood:

Remove NULL check for Self() in TreeTop::join

`OMR::TreeTop::join()` checks if self() is NULL [1], which is odd
because it never makes sense to call a member function on a NULL
object. Such calls are undefined behaviour.

Closes: #4835
Signed-off-by: Tucker <tmiles7@vols.utk.edu>

Once we get that fixed up and all the checks pass I'll kick off a test build and we'll get the change merged. Thanks!

[1] https://github.com/eclipse/omr/blob/master/CONTRIBUTING.md#commit-guidelines

@tuckermiles70
Copy link
Contributor Author

Thank you @fjeremic and others for being so helpful, I believe I have successfully squashed the commits and strengthened my commit message.

@fjeremic
Copy link
Contributor

@tuckermiles70 we're almost there. There seems to be some foreign commits added to this PR as part of your rebase.

@tuckermiles70
Copy link
Contributor Author

@fjeremic I believe I have cleared this up

@tuckermiles70
Copy link
Contributor Author

ECA sign-off status seems to not be getting validated. Making sure my emails are consolidated now

`OMR::TreeTop::join()` checks if self() is NULL [1], which is odd
because it never makes sense to call a member function on a NULL
object. Such calls are undefined behaviour.

Closes: eclipse-omr#4835
Signed-off-by: Tucker <tuckermiles70@gmail.com>
@tuckermiles70
Copy link
Contributor Author

@fjeremic All checks seem to pass now!

@fjeremic fjeremic changed the title removed null check for Self() in TreeTop::join Remove NULL check for Self() in TreeTop::join Feb 19, 2020
@fjeremic
Copy link
Contributor

@genie-omr build all

@fjeremic fjeremic merged commit 0724543 into eclipse-omr:master Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify OMR::TreeTop::join() by removing unnecessary null check of self()
3 participants