8390907: Genshen: Improve mark loop performance - #32488
Conversation
|
👋 Welcome back wkemper! A progress list of the required criteria for merging this PR into |
|
@earthling-amzn 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: You can use pull request commands such as /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 20 new commits pushed to the
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. ➡️ To integrate this PR with the above commit message to the |
|
@earthling-amzn The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
| inline bool is_write_card_dirty(HeapWord* p) const; | ||
| inline void mark_card_as_dirty(HeapWord* p); | ||
|
|
||
| void mark_card_as_dirty(HeapWord* p) const { |
There was a problem hiding this comment.
Functions like these really belong in .inline.hpp. Putting anything non-trivial in the .hpp risks circular dependencies that are hard to untangle.
|
@earthling-amzn this pull request can not be integrated into git checkout simplify-reremember-during-mark
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
|
In my runs, I also see |
Webrevs
|
kdnilsen
left a comment
There was a problem hiding this comment.
Thanks. Nice performance improvements.
| * Copyright (c) 2015, 2020, Red Hat, Inc. All rights reserved. | ||
| * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | ||
| * Copyright (c) 2025, 2026, Oracle and/or its affiliates. All rights reserved. | ||
| * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved. |
There was a problem hiding this comment.
This moves dates backwards, so it does not look right.
There was a problem hiding this comment.
Sorry, bad merge.
| if (ShenandoahHeapRegion::is_in_same_region(maybe_old, maybe_young)) { | ||
| return false; | ||
| } |
There was a problem hiding this comment.
Just for my understanding. This is a narrower check than we can do? I would have tried to check that region affiliations are different. But that performs access to affiliation bitmap, so that's why we do this address-only check, right?
There was a problem hiding this comment.
Right, it's meant to be a cheap test that the pointers are in different regions to avoid looking up their respective affiliations.
|
Failures look like network timeouts or other infrastructure issues. /integrate |
|
Going to push as commit c86277f.
Your commit was automatically rebased without conflicts. |
|
@earthling-amzn Pushed as commit c86277f. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
There are several small changes here that add up to a 10% to 12% reduction in mark times on specjbb2015.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32488/head:pull/32488$ git checkout pull/32488Update a local copy of the PR:
$ git checkout pull/32488$ git pull https://git.openjdk.org/jdk.git pull/32488/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 32488View PR using the GUI difftool:
$ git pr show -t 32488Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32488.diff
Using Webrev
Link to Webrev Comment