Skip to content

8377171: [lworld] Comment warnings for internal valhalla annotations#2023

Open
liach wants to merge 3 commits intoopenjdk:lworldfrom
liach:doc/value-annos-risk
Open

8377171: [lworld] Comment warnings for internal valhalla annotations#2023
liach wants to merge 3 commits intoopenjdk:lworldfrom
liach:doc/value-annos-risk

Conversation

@liach
Copy link
Copy Markdown
Member

@liach liach commented Feb 3, 2026

Add some warning comments for value-related annotations in jdk.internal, to discourage their misuse.


Progress

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

Issue

  • JDK-8377171: [lworld] Comment warnings for internal valhalla annotations (Enhancement - P4)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2023

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2023.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Feb 3, 2026

👋 Welcome back liach! A progress list of the required criteria for merging this PR into lworld 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 Feb 3, 2026

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

@liach liach changed the title Add some warning comments for value annotations 8377171 Feb 4, 2026
@liach liach marked this pull request as ready for review February 4, 2026 14:55
@openjdk openjdk bot changed the title 8377171 8377171: [lworld] Comment warnings for internal valhalla annotations Feb 4, 2026
@openjdk openjdk bot added the rfr Pull request is ready for review label Feb 4, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge bot commented Feb 4, 2026

Webrevs

@merykitty
Copy link
Copy Markdown
Member

merykitty commented Feb 4, 2026

I think there is no need to discourage usages of these annotations more than the fact that they are internal APIs. Furthermore, it is also really helpful when people use them experimentally, which can help us uncover implementation issues with these configurations.

@liach
Copy link
Copy Markdown
Member Author

liach commented Feb 4, 2026

These annotations only promise the performance features from the JVM and has nothing to do with the future language semantics proposed by project Valhalla. I think the warnings I added are adequate about how they are not going to correspond to future Java language features.

@merykitty
Copy link
Copy Markdown
Member

Your reasoning implies that internal annotations somehow often corresponds to future language semantics, which is not the case.

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Mar 5, 2026

@liach This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

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

Labels

rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

3 participants