Skip to content

8384834: Remove CompilationMode flag#31378

Draft
aprilivy wants to merge 1 commit into
openjdk:masterfrom
aprilivy:8384834-remove-compilation-mode
Draft

8384834: Remove CompilationMode flag#31378
aprilivy wants to merge 1 commit into
openjdk:masterfrom
aprilivy:8384834-remove-compilation-mode

Conversation

@aprilivy
Copy link
Copy Markdown
Contributor

@aprilivy aprilivy commented Jun 4, 2026

As noted in https://bugs.openjdk.org/browse/JDK-8384834, remove the -XX:CompilationMode product flag now that JVMCI has been removed. Compiler policy paths previously branching on CompilationModeFlag have been replaced with existing CompilerConfig checks, and tests updated accordingly.



Progress

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

Issue

  • JDK-8384834: Remove CompilationMode flag (Enhancement - P4)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 31378

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Jun 4, 2026

👋 Welcome back April-Ivy! 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
Copy Markdown

openjdk Bot commented Jun 4, 2026

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

@openjdk openjdk Bot added the hotspot hotspot-dev@openjdk.org label Jun 4, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented Jun 4, 2026

@April-Ivy The following label will be automatically applied to this pull request:

  • hotspot

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
Copy link
Copy Markdown

openjdk Bot commented Jun 4, 2026

The total number of required reviews for this PR has been set to 2 based on the presence of this label: hotspot. This can be overridden with the /reviewers command.

@openjdk openjdk Bot added the rfr Pull request is ready for review label Jun 4, 2026
@aprilivy
Copy link
Copy Markdown
Contributor Author

aprilivy commented Jun 4, 2026

@anton-seoane @mhaessig could you take a look? Thanks!

@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented Jun 4, 2026

Webrevs

Copy link
Copy Markdown
Contributor

@mhaessig mhaessig left a comment

Choose a reason for hiding this comment

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

Thank you for this excellent work, @aprilivy!

Unfortunately, I filed this with too little information as this is my first time removing a product flag. CompilerMode is a product flag and by the Hotspot flags lifecycle we must deprecate it first.

Hence, we cannot go ahead with this yet. However, this change is more or less what is needed for obsoleting the flag, so we can use it then. This be in a one or two releases time.

Apologies for my negligent filing of this issue. But this will come in useful.

@aprilivy
Copy link
Copy Markdown
Contributor Author

aprilivy commented Jun 4, 2026

Thank you for this excellent work, @aprilivy!

Unfortunately, I filed this with too little information as this is my first time removing a product flag. CompilerMode is a product flag and by the Hotspot flags lifecycle we must deprecate it first.

Hence, we cannot go ahead with this yet. However, this change is more or less what is needed for obsoleting the flag, so we can use it then. This be in a one or two releases time.

Apologies for my negligent filing of this issue. But this will come in useful.

Thanks @mhaessig, and no need to apologise. Makes sense, and glad it'll be useful for the obsolete step down the line. I'll leave this up so the branch is ready to reuse when that step comes around, and I'll convert it to a draft in the meantime so it isn't sitting in the review queue. Thanks for walking me through the flag lifecycle.

@aprilivy aprilivy marked this pull request as draft June 4, 2026 18:06
@openjdk openjdk Bot removed the rfr Pull request is ready for review label Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot hotspot-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

2 participants