Skip to content

Conversation

@coleenp
Copy link
Contributor

@coleenp coleenp commented Feb 25, 2025

This change removes the ci, c1 and c2 compiler code from the serviceability agent. The ciReplay functionality is supported inside the jvm and this duplicated functionality in SA had bit rotted so is removed.
Tested with tier1-4.


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-8315488: Remove outdated and unused ciReplay support from SA (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 23782

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Feb 25, 2025

👋 Welcome back coleenp! 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 Feb 25, 2025

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

8315488: Remove outdated and unused ciReplay support from SA

Reviewed-by: kvn, cjplummer, yzheng

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 87 new commits pushed to the master branch:

  • 4109c73: 8349523: Unused runtime calls to drem/frem should be removed
  • b054d24: 8350584: Check the usage of LOG_PLEASE
  • 717c499: 8351014: ProblemList the com/sun/management/OperatingSystemMXBean cpuLoad tests on Windows
  • 3657e92: 8349637: Integer.numberOfLeadingZeros outputs incorrectly in certain cases
  • 93c8784: 8350716: [s390] intrinsify Thread.currentThread()
  • d48ddfe: 8350748: VectorAPI: Method "checkMaskFromIndexSize" should be force inlined
  • 0a1eea1: 8345492: Fix -Wzero-as-null-pointer-constant warnings in adlc code
  • 157e5ad: 8350916: Remove misleading warning "Cannot dump shared archive while using shared archive"
  • 785e7b4: 8350819: Ignore core files
  • 3c72c04: 8350818: Improve OperatingSystemMXBean cpu load tests to not accept -1.0 by default
  • ... and 77 more: https://git.openjdk.org/jdk/compare/65f79c145b7b1b32ed064a37ad4d2b6aca935a4c...master

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 master branch, type /integrate in a new comment.

@openjdk
Copy link

openjdk bot commented Feb 25, 2025

@coleenp The following label will be automatically applied to this pull request:

  • serviceability

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 serviceability serviceability-dev@openjdk.org label Feb 25, 2025
@coleenp coleenp changed the title Remove SA compiler replay facility that nobody uses. 8315488: SA ciReplay support is no longer up-to-date with hotspot ciReplay support Feb 25, 2025
@coleenp coleenp marked this pull request as ready for review February 27, 2025 17:24
@openjdk openjdk bot added the rfr Pull request is ready for review label Feb 27, 2025
@mlbridge
Copy link

mlbridge bot commented Feb 27, 2025

@coleenp
Copy link
Contributor Author

coleenp commented Feb 27, 2025

/label add hotspot-compiler

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label Feb 27, 2025
@openjdk
Copy link

openjdk bot commented Feb 27, 2025

@coleenp
The hotspot-compiler label was successfully added.

Copy link
Contributor Author

@coleenp coleenp left a comment

Choose a reason for hiding this comment

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

Thanks for looking at the change Chris and Vladimir.

With this change, we can further remove these VM_STRUCTS macros like declare_c1_type, declare_c1_toplevel_type, etc. It makes for a bigger change, but only more lines and more tedious.

Copy link
Contributor Author

@coleenp coleenp left a comment

Choose a reason for hiding this comment

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

The os_cpu VM_STRUCTS, VM_TYPES, etc have no declarations and should be removed, but I think I should stop here.

@vnkozlov
Copy link
Contributor

The os_cpu VM_STRUCTS, VM_TYPES, etc have no declarations and should be removed, but I think I should stop here.

File an other "starter" RFE

@vnkozlov
Copy link
Contributor

Zero build is broken:

src/hotspot/share/runtime/vmStructs.cpp:1321:46: error: ‘COMPILER2’ was not declared in this scope; did you mean ‘NOT_COMPILER2’?
 1321 |   declare_preprocessor_constant("COMPILER2", COMPILER2)                   \
      |                                              ^~~~~~~~~

Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

Very very nice cleanup!

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Feb 28, 2025
@plummercj
Copy link
Contributor

I wonder if you shouldn't use a new CR for this PR to make it clear to anyone that skims over the title of the PR/CR that (broken) functionality is being removed, not fixed.

@vnkozlov
Copy link
Contributor

vnkozlov commented Feb 28, 2025

I wonder if you shouldn't use a new CR for this PR to make it clear to anyone that skims over the title of the PR/CR that (broken) functionality is being removed, not fixed.

Just change title: "Remove outdated and unused ciReplay support from SA"

@coleenp
Copy link
Contributor Author

coleenp commented Feb 28, 2025

I wonder if you shouldn't use a new CR for this PR to make it clear to anyone that skims over the title of the PR/CR that (broken) functionality is being removed, not fixed.

Just change title: "Remove outdated and unused ciReplay support from SA"

Yes, I'll do this.

@coleenp coleenp changed the title 8315488: SA ciReplay support is no longer up-to-date with hotspot ciReplay support 8315488: Remove outdated and unused ciReplay and compiler support from SA Feb 28, 2025
@coleenp coleenp changed the title 8315488: Remove outdated and unused ciReplay and compiler support from SA 8315488: Remove outdated and unused ciReplay support from SA Feb 28, 2025
@coleenp
Copy link
Contributor Author

coleenp commented Feb 28, 2025

Thank you for reviewing Vladimir. I'll file the other issue but not a "starter". New people should do more interesting things :)

Copy link
Contributor

@mur47x111 mur47x111 left a comment

Choose a reason for hiding this comment

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

JVMCI changes LGTM

@coleenp
Copy link
Contributor Author

coleenp commented Mar 3, 2025

Thank you for reviewing Chris, Vladimir and Yudi.
/integrate

@openjdk
Copy link

openjdk bot commented Mar 3, 2025

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

  • 4109c73: 8349523: Unused runtime calls to drem/frem should be removed
  • b054d24: 8350584: Check the usage of LOG_PLEASE
  • 717c499: 8351014: ProblemList the com/sun/management/OperatingSystemMXBean cpuLoad tests on Windows
  • 3657e92: 8349637: Integer.numberOfLeadingZeros outputs incorrectly in certain cases
  • 93c8784: 8350716: [s390] intrinsify Thread.currentThread()
  • d48ddfe: 8350748: VectorAPI: Method "checkMaskFromIndexSize" should be force inlined
  • 0a1eea1: 8345492: Fix -Wzero-as-null-pointer-constant warnings in adlc code
  • 157e5ad: 8350916: Remove misleading warning "Cannot dump shared archive while using shared archive"
  • 785e7b4: 8350819: Ignore core files
  • 3c72c04: 8350818: Improve OperatingSystemMXBean cpu load tests to not accept -1.0 by default
  • ... and 77 more: https://git.openjdk.org/jdk/compare/65f79c145b7b1b32ed064a37ad4d2b6aca935a4c...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Mar 3, 2025
@openjdk openjdk bot closed this Mar 3, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 3, 2025
@openjdk
Copy link

openjdk bot commented Mar 3, 2025

@coleenp Pushed as commit 8b0468f.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated serviceability serviceability-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

4 participants