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

8290223: Initialize G1CardClosure in card scanning once #9478

Conversation

tschatzl
Copy link
Contributor

@tschatzl tschatzl commented Jul 13, 2022

Hi all,

please review this minor change to avoid repeatedly initializing G1CardClosure in card scanning.

Testing: gha, local compilation

Thanks,
Thomas


Progress

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

Issue

  • JDK-8290223: Initialize G1CardClosure in card scanning once

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 9478

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

Using diff file

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

Sorry, something went wrong.

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 13, 2022

👋 Welcome back tschatzl! 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 changed the title 8290223 8290223: Initialize G1CardClosure in card scanning once Jul 13, 2022
@openjdk openjdk bot added the rfr Pull request is ready for review label Jul 13, 2022
@openjdk
Copy link

openjdk bot commented Jul 13, 2022

@tschatzl 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 Jul 13, 2022
@mlbridge
Copy link

mlbridge bot commented Jul 13, 2022

Webrevs

Copy link

@kimbarrett kimbarrett left a comment

Choose a reason for hiding this comment

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

The JBS issue is labled gc-performance. Is it measurable?

I'm not strongly opposed to the change, but it increases the scope of the
scan closure (which is slightly unhelpful for code understanding). It also
passes the _heap_roots_found counter (by reference) to the closure constructor
before it's value has been initialized, so have to make sure the closure
constructor doesn't access the value. So I'd like to know what the benefit
might be.

@tschatzl
Copy link
Contributor Author

Closing after re-measuring.

@tschatzl tschatzl closed this Jul 14, 2022
@tschatzl tschatzl deleted the submit/8290223-initialize-g1cardclosure-once branch July 14, 2022 12:11
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 rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

None yet

2 participants