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

8258534: Epsilon: clean up unused includes #1745

Closed
wants to merge 1 commit into from

Conversation

lhtin
Copy link
Contributor

@lhtin lhtin commented Dec 11, 2020

Hi all,

CLion IDE shows two warnings of unused includes(#include "utilities/macros.hpp") in EpsilonGC's code. these maybe can be removed.

Testing: macosx-x86_64-server-{release,fastdebug,slowdebug}


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

Reviewers

Download

$ git fetch https://git.openjdk.java.net/jdk pull/1745/head:pull/1745
$ git checkout pull/1745

@bridgekeeper bridgekeeper bot added the oca Needs verification of OCA signatory status label Dec 11, 2020
@bridgekeeper
Copy link

bridgekeeper bot commented Dec 11, 2020

Hi @lhtin, 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 /signed in a comment in this pull request.

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 lhtin" 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 /covered in a comment in this pull request.

@lhtin
Copy link
Contributor Author

lhtin commented Dec 11, 2020

/covered

@openjdk
Copy link

openjdk bot commented Dec 11, 2020

@lhtin The following label will be automatically applied to this pull request:

  • hotspot-gc

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the hotspot-gc hotspot-gc-dev@openjdk.org label Dec 11, 2020
@bridgekeeper bridgekeeper bot added the oca-verify Needs verification of OCA signatory status label Dec 11, 2020
@bridgekeeper
Copy link

bridgekeeper bot commented Dec 11, 2020

Thank you! Please allow for a few business days to verify that your employer has signed the OCA. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated!

@shipilev
Copy link
Member

Unfortunately, CLion makes the incorrect call here. macros.hpp is included to get access to COMPILER1 and COMPILER2 macros. So we cannot really remove that #include.

@lhtin
Copy link
Contributor Author

lhtin commented Dec 12, 2020

Thank you for your review. When the CLion shows the two warnings, I try to found COMPILER1 and COMPILER2 macros define from utilities/macros.hpp file but can not. Or the two macros be added to utilities/macros.hpp file when building? My understanding is that the two macros come from C_FLAGS(-DCOMPILER1, -DCOMPILER2) when building.

@bridgekeeper bridgekeeper bot removed oca Needs verification of OCA signatory status oca-verify Needs verification of OCA signatory status labels Dec 16, 2020
@lhtin
Copy link
Contributor Author

lhtin commented Dec 17, 2020

/issue add JDK-8258534
/test

@openjdk openjdk bot changed the title Epsilon: clean up unused includes 8258534: Epsilon: clean up unused includes Dec 17, 2020
@openjdk
Copy link

openjdk bot commented Dec 17, 2020

@lhtin The primary solved issue for a PR is set through the PR title. Since the current title does not contain an issue reference, it will now be updated.

@openjdk openjdk bot added the rfr Pull request is ready for review label Dec 17, 2020
@mlbridge
Copy link

mlbridge bot commented Dec 17, 2020

Webrevs

@DamonFool
Copy link
Member

/test

@openjdk
Copy link

openjdk bot commented Dec 17, 2020

@DamonFool you need to get approval to run the tests in tier1 for commits up until 6d311ad

@openjdk openjdk bot added the test-request label Dec 17, 2020
@lhtin
Copy link
Contributor Author

lhtin commented Dec 17, 2020

/test

@openjdk
Copy link

openjdk bot commented Dec 17, 2020

@lhtin you need to get approval to run the tests in tier1 for commits up until 6d311ad

@DamonFool
Copy link
Member

Unfortunately, CLion makes the incorrect call here. macros.hpp is included to get access to COMPILER1 and COMPILER2 macros. So we cannot really remove that #include.

Hi @shipilev ,

Build tests passed on our Linux/x64 machines with this patch.
So I think the change is fine.
Am I missing something?

Thanks.

@shipilev
Copy link
Member

This looks like a cleanup and not very time-pressing, right? I'll take a look after NY holidays.

@lhtin
Copy link
Contributor Author

lhtin commented Dec 18, 2020

This looks like a cleanup and not very time-pressing, right? I'll take a look after NY holidays.

Yes, just a small change. Take your time.

Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the second look, the #include for macro.hpp is indeed excessive: COMPILER1 and COMPILER2 are already defined, so the rest of the #include-s should work fine. The only reason we would want that include if Epsilon used any of the extended definitions like COMPILER2_ONLY, but it does not.

The patch looks good then. Please make sure you run the pre-integration tests. To do that, GH Actions should be enabled here: https://github.com/lhtin/jdk/actions -- and then probably triggered manually on your branch. Then "Checks" tab should have the test results. Once that is done, I would formally approve.

@lhtin
Copy link
Contributor Author

lhtin commented Jan 5, 2021

On the second look, the #include for macro.hpp is indeed excessive: COMPILER1 and COMPILER2 are already defined, so the rest of the #include-s should work fine. The only reason we would want that include if Epsilon used any of the extended definitions like COMPILER2_ONLY, but it does not.

The patch looks good then. Please make sure you run the pre-integration tests. To do that, GH Actions should be enabled here: https://github.com/lhtin/jdk/actions -- and then probably triggered manually on your branch. Then "Checks" tab should have the test results. Once that is done, I would formally approve.

Thank you for your review and guide of test.
The pre-integration test has finished.

Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, you are good to go.

@openjdk
Copy link

openjdk bot commented Jan 5, 2021

@lhtin 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:

8258534: Epsilon: clean up unused includes

Reviewed-by: shade, jiefu

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 191 new commits pushed to the master branch:

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 (@shipilev, @DamonFool) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jan 5, 2021
@DamonFool
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Jan 5, 2021

@DamonFool The change author (@lhtin) must issue an integrate command before the integration can be sponsored.

@lhtin
Copy link
Contributor Author

lhtin commented Jan 5, 2021

/integrate

@DamonFool
Copy link
Member

/sponsor

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jan 5, 2021
@openjdk
Copy link

openjdk bot commented Jan 5, 2021

@lhtin
Your change (at version 6d311ad) is now ready to be sponsored by a Committer.

@openjdk openjdk bot closed this Jan 5, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed sponsor Pull request is ready to be sponsored ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jan 5, 2021
@openjdk
Copy link

openjdk bot commented Jan 5, 2021

@DamonFool @lhtin Since your change was applied there have been 191 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

Pushed as commit 3817c32.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-gc hotspot-gc-dev@openjdk.org integrated Pull request has been integrated test-request
Development

Successfully merging this pull request may close these issues.

3 participants