Skip to content

8384100: UNSIGNED5::Reader::try_skip() is missing a terminating condition#31077

Open
mgronlun wants to merge 2 commits intoopenjdk:masterfrom
mgronlun:8384100
Open

8384100: UNSIGNED5::Reader::try_skip() is missing a terminating condition#31077
mgronlun wants to merge 2 commits intoopenjdk:masterfrom
mgronlun:8384100

Conversation

@mgronlun
Copy link
Copy Markdown

@mgronlun mgronlun commented May 7, 2026

Greetings,

Tiny fix for try_skip().

Found when fixing JDK-8382332

Thanks
Markus



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-8384100: UNSIGNED5::Reader::try_skip() is missing a terminating condition (Bug - P3)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 31077

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented May 7, 2026

👋 Welcome back mgronlun! 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 May 7, 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 May 7, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 7, 2026

@mgronlun 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 May 7, 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 May 7, 2026
@mgronlun
Copy link
Copy Markdown
Author

mgronlun commented May 7, 2026

/reviewers 1

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 7, 2026

@mgronlun
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 1 (with at least 1 Reviewer).

@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented May 7, 2026

Webrevs

@mgronlun
Copy link
Copy Markdown
Author

mgronlun commented May 7, 2026

Curiously, the existing call site in FieldInfo skip has not trapped on the assert.

Perhaps a compiler inlining this location will remove the return value 's' and, subsequently, also remove the assert? Will try to see what the compiler produces here, in debug builds.

@mgronlun
Copy link
Copy Markdown
Author

mgronlun commented May 7, 2026

Curiously, the existing call site in FieldInfo skip has not trapped on the assert.

Perhaps a compiler inlining this location will remove the return value 's' and, subsequently, also remove the assert? Will try to see what the compiler produces here, in debug builds.

Not so mysterious after all: FieldInfoReader::skip_field_info() and FieldInfoReader::skip_to_field_info() don't have any usages.

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

Labels

hotspot hotspot-dev@openjdk.org rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

1 participant