Skip to content

8309346: Extend hs_err logging for all VM operations deriving from VM_GC_Operation#14287

Closed
quadhier wants to merge 4 commits intoopenjdk:masterfrom
quadhier:fix-8309346
Closed

8309346: Extend hs_err logging for all VM operations deriving from VM_GC_Operation#14287
quadhier wants to merge 4 commits intoopenjdk:masterfrom
quadhier:fix-8309346

Conversation

@quadhier
Copy link
Contributor

@quadhier quadhier commented Jun 2, 2023

This patch implements cause() for VM_GC_Operation and its derived classes. It follows JDK-8309210 to provide more detailed info for VM_GC_Operations in hs_err log file.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8309346: Extend hs_err logging for all VM operations deriving from VM_GC_Operation

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14287/head:pull/14287
$ git checkout pull/14287

Update a local copy of the PR:
$ git checkout pull/14287
$ git pull https://git.openjdk.org/jdk.git pull/14287/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 14287

View PR using the GUI difftool:
$ git pr show -t 14287

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14287.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 2, 2023

👋 Welcome back quadhier! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Jun 2, 2023
@openjdk
Copy link

openjdk bot commented Jun 2, 2023

@quadhier 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 Jun 2, 2023
@mlbridge
Copy link

mlbridge bot commented Jun 2, 2023

Webrevs

@lkorinth
Copy link
Contributor

lkorinth commented Jun 5, 2023

(this is not a review) How about using override instead of virtual? I think it better shows how the method is used, and also create compile time errors if we miss to rename the method during refactoring.

@quadhier
Copy link
Contributor Author

quadhier commented Jun 5, 2023

(this is not a review) How about using override instead of virtual? I think it better shows how the method is used, and also create compile time errors if we miss to rename the method during refactoring.

Good advice, but only using override here will raise many other errors like error: 'doit_prologue' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]. We'd better leave it for further cleaning up.

Copy link
Contributor

@tschatzl tschatzl left a comment

Choose a reason for hiding this comment

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

Lgtm.

Would it be possible to also add some description string for VM_Verify and VM_PopulateDynamicDumpSharedSpace (separately)? I'll file an RFE which you could pick up if you want.

Edit: filed https://bugs.openjdk.org/browse/JDK-8309482

@openjdk
Copy link

openjdk bot commented Jun 5, 2023

⚠️ @quadhier the full name on your profile does not match the author name in this pull requests' HEAD commit. If this pull request gets integrated then the author name from this pull requests' HEAD commit will be used for the resulting commit. If you wish to push a new commit with a different author name, then please run the following commands in a local repository of your personal fork:

$ git checkout fix-8309346
$ git commit --author='Preferred Full Name <you@example.com>' --allow-empty -m 'Update full name'
$ git push

@openjdk
Copy link

openjdk bot commented Jun 5, 2023

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

8309346: Extend hs_err logging for all VM operations deriving from VM_GC_Operation

Reviewed-by: tschatzl, stefank

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 33 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 (@tschatzl, @stefank) 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 Jun 5, 2023
@quadhier
Copy link
Contributor Author

quadhier commented Jun 5, 2023

Would it be possible to also add some description string for VM_Verify and VM_PopulateDynamicDumpSharedSpace (separately)? I'll file an RFE which you could pick up if you want.

Edit: filed https://bugs.openjdk.org/browse/JDK-8309482

Thanks for your review @tschatzl ! I'll take it.

@quadhier
Copy link
Contributor Author

quadhier commented Jun 5, 2023

/integrate

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

openjdk bot commented Jun 5, 2023

@quadhier
Your change (at version 62c1da2) is now ready to be sponsored by a Committer.

Copy link
Member

@stefank stefank left a comment

Choose a reason for hiding this comment

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

Could you move the implementation over to the .cpp file? We should strive to not add non-trivial implementation in .hpp files.

@quadhier
Copy link
Contributor Author

quadhier commented Jun 5, 2023

Could you move the implementation over to the .cpp file? We should strive to not add non-trivial implementation in .hpp files.

Make sense, thanks for your review @stefank !

@openjdk openjdk bot removed the sponsor Pull request is ready to be sponsored label Jun 5, 2023
@quadhier
Copy link
Contributor Author

quadhier commented Jun 5, 2023

/reviewers 2

@openjdk
Copy link

openjdk bot commented Jun 5, 2023

@quadhier
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Jun 5, 2023
Copy link
Member

@stefank stefank left a comment

Choose a reason for hiding this comment

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

Looks good.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jun 5, 2023
@quadhier
Copy link
Contributor Author

quadhier commented Jun 6, 2023

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jun 6, 2023
@openjdk
Copy link

openjdk bot commented Jun 6, 2023

@quadhier
Your change (at version 8d4d729) is now ready to be sponsored by a Committer.

Copy link
Contributor

@tschatzl tschatzl left a comment

Choose a reason for hiding this comment

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

Still good.

@tschatzl
Copy link
Contributor

tschatzl commented Jun 6, 2023

/sponsor

@openjdk
Copy link

openjdk bot commented Jun 6, 2023

Going to push as commit a7a0913.
Since your change was applied there have been 33 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jun 6, 2023
@openjdk openjdk bot closed this Jun 6, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Jun 6, 2023
@openjdk
Copy link

openjdk bot commented Jun 6, 2023

@tschatzl @quadhier Pushed as commit a7a0913.

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

@quadhier
Copy link
Contributor Author

quadhier commented Jun 6, 2023

Thanks again for your comments and reviews @lkorinth @tschatzl @stefank !

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

Development

Successfully merging this pull request may close these issues.

4 participants