Repository navigation
Conversation
|
👋 Welcome back fandreuz! A progress list of the required criteria for merging this PR into |
| #include "runtime/interfaceSupport.inline.hpp" | ||
| #include "runtime/thread.inline.hpp" | ||
|
|
||
| // for strstr |
There was a problem hiding this comment.
Let me know if the comment should stay
|
@fandreuz 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 /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the 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 (@mgronlun, @shipilev) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
|
This creates a dependency on a test that is not normally run when we develop JFR. What tier is the test located? |
|
|
A blanket HotSpot change that does not add much value, but instead creates an unnecessary dependency that will make development of JFR more problematic. |
It is not "blanket", is it? The includes get sorted component by component, and many components in Hotspot have already been processed, with a long view of entire Hotspot being covered. Overall, while I agree maintaining the include order hygiene would require additional work, that is true for any hygiene work. It does not mean we refrain from it. What we do is to make sure the detection is as prompt and the fixes are as easy as practically possible. Also, there is already a "dependency" on source tests. For example, if you write |
|
That is a blanket change, yes - it means all of HotSpot being covered. In my opinion, it adds little value and instead creates more work for us that develop JFR. |
But if "someone" has said this is good to do for all of HotSpot (who?), we can accommodate the general will. |
Noted, but I think this overestimates the amount of work. If the test would fail in jdk/test/hotspot/jtreg/sources/TestIncludesAreSorted.java Lines 91 to 93 in c1198bb
Take a look at Hotspot Style Guide: "Keep the include lines within a section alphabetically sorted by their lowercase value. If an include must be out of order for correctness, suffix with it a comment such as // do not reorder. Source code processing tools can also use this hint." Both the original JDK-8352645, and the related tasks from it maintain the same consensus: sort the includes, make sure the test would keep them sorted. |
|
That the test is integrated with GHA is the good part. |
|
/integrate |
|
For Hotspot changes, you need to wait 24 hours, so people around the globe could take a look. |
Sure, so is it 24 hours after getting approval? I thought it's 24 hours after opening the PR. |
Ah no, you're right: https://openjdk.org/guide/#life-of-a-pr -- 24 hours is the bare minimum. It gets a bit murky around holidays/weekends, as people take time off or checkout on Friday earlier. But this looks fine. You also need a Review from one area expert (for JFR, Markus definitely qualifies), and another Review from any other reviewer. I'll do it shortly. |
shipilev
left a comment
There was a problem hiding this comment.
Looks fine, but I think we should refrain from deleting the includes here.
|
/integrate |
|
/sponsor |
|
Going to push as commit ecab52c.
Your commit was automatically rebased without conflicts. |
This PR sorts the includes in hotspot/share/jfr using SortIncludes.java. I'm also adding the directory to TestIncludesAreSorted.
Testing:
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26800/head:pull/26800$ git checkout pull/26800Update a local copy of the PR:
$ git checkout pull/26800$ git pull https://git.openjdk.org/jdk.git pull/26800/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26800View PR using the GUI difftool:
$ git pr show -t 26800Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26800.diff
Using Webrev
Link to Webrev Comment