Skip to content

Conversation

albertnetymk
Copy link
Member

@albertnetymk albertnetymk commented Sep 19, 2025

Trivial changing the closure input arg to avoid PSPromotionManager lookup.

Test: tier1


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-8368104: Parallel: Refactor PSThreadRootsTaskClosure (Enhancement - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 27393

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 19, 2025

👋 Welcome back ayang! 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
Copy link

openjdk bot commented Sep 19, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title 8368104 8368104: Parallel: Refactor PSThreadRootsTaskClosure Sep 19, 2025
@openjdk
Copy link

openjdk bot commented Sep 19, 2025

@albertnetymk 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 rfr Pull request is ready for review label Sep 19, 2025
@mlbridge
Copy link

mlbridge bot commented Sep 19, 2025

Webrevs

Comment on lines +294 to +295
PSScavengeRootsClosure root_closure(pm);
_oop_storage_strong_par_state.oops_do(&root_closure);
Copy link
Member

Choose a reason for hiding this comment

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

The pm variable isn't local to this scope anymore so it would probably be nicer to move the following part out of the scope:

      // Do the real work
      pm->drain_stacks(false);

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, it's there to be consistent with other kinds of roots -- old-to-young pointers, inside scavenge_roots_work, and thread_closure.

Copy link
Member

Choose a reason for hiding this comment

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

Ahh. I see now.

Would you mind adding a blank line so that the formatting is consistent:

      PSScavengeRootsClosure root_closure(pm);
      _oop_storage_strong_par_state.oops_do(&root_closure);

      // Do the real work
      pm->drain_stacks(false);

PSCardTable* card_table = ParallelScavengeHeap::heap()->card_table();

Copy link
Member

Choose a reason for hiding this comment

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

Please restore this blank line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-gc [email protected] rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

3 participants