Skip to content

Conversation

@zzambers
Copy link
Contributor

@zzambers zzambers commented Nov 19, 2025

Backport fixes left shift on negative value which is undefined behavior. This is required to build on newer clang (macos). See also backport of JDK-8157758.

File has different path on JDK 8, but changes applied cleanly.

Testing:
GHA: OK (failures seem unrelated)


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • JDK-8211804 needs maintainer approval
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8211804: Constant AO_UNUSED_MBZ uses left shift of negative value (Bug - P4 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/722/head:pull/722
$ git checkout pull/722

Update a local copy of the PR:
$ git checkout pull/722
$ git pull https://git.openjdk.org/jdk8u-dev.git pull/722/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 722

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/722.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 19, 2025

👋 Welcome back zzambers! 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 Nov 19, 2025

@zzambers This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8211804: Constant AO_UNUSED_MBZ uses left shift of negative value

Use unsigned shift.

Reviewed-by: phh, sgehwolf

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 no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential 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 openjdk bot changed the title Backport 44f94ee8bc6c934be1f4435227a81e6072361110 8211804: Constant AO_UNUSED_MBZ uses left shift of negative value Nov 19, 2025
@openjdk
Copy link

openjdk bot commented Nov 19, 2025

This backport pull request has now been updated with issue and summary from the original commit.

@openjdk openjdk bot added backport Port of a pull request already in a different code base rfr Pull request is ready for review labels Nov 19, 2025
@mlbridge
Copy link

mlbridge bot commented Nov 19, 2025

Webrevs

@openjdk
Copy link

openjdk bot commented Nov 19, 2025

⚠️ @zzambers This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

Copy link
Contributor

@jerboaa jerboaa left a comment

Choose a reason for hiding this comment

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

LGTM

@zzambers
Copy link
Contributor Author

/approval request Fix of undefined behavior causing warning/error on clang, trivial fix - low risk, GHA ok

@openjdk
Copy link

openjdk bot commented Nov 20, 2025

@zzambers
8211804: Can not be found in the JDK project.

@jerboaa
Copy link
Contributor

jerboaa commented Nov 20, 2025

@zzambers 8211804: Can not be found in the JDK project.

@kevinrushforth Any ideas what's going on? --^

@kevinrushforth
Copy link
Member

@zzambers 8211804: Can not be found in the JDK project.

@kevinrushforth Any ideas what's going on? --^

It seems to be some intermittent issue with JBS. Retry it and see if that helps.

@erikj79 Should Skara retry automatically? It doesn't seem like it is in either this case or similar cases.

@jerboaa
Copy link
Contributor

jerboaa commented Nov 20, 2025

@zzambers 8211804: Can not be found in the JDK project.

@kevinrushforth Any ideas what's going on? --^

It seems to be some intermittent issue with JBS. Retry it and see if that helps.

It seems to be happening a lot today.

@zzambers
Copy link
Contributor Author

/approval request Fix of undefined behavior causing warning/error on clang, trivial fix - low risk, GHA ok

@openjdk
Copy link

openjdk bot commented Nov 24, 2025

@zzambers
8211804: Can not be found in the JDK project.

@zzambers
Copy link
Contributor Author

zzambers commented Nov 24, 2025

weird, It says it cannot find 8211804, but PR seems to be paired with jira
I have created fix request manually

@openjdk openjdk bot added the approval Requires approval; will be removed when approval is received label Nov 24, 2025
@jerboaa
Copy link
Contributor

jerboaa commented Nov 24, 2025

/approve yes

(also checking if the JBS issues remain)

@openjdk
Copy link

openjdk bot commented Nov 24, 2025

@jerboaa
8211804: The approval request has been approved.

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval Requires approval; will be removed when approval is received labels Nov 24, 2025
@zzambers
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Nov 24, 2025

Going to push as commit f67be21.

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

openjdk bot commented Nov 24, 2025

@zzambers Pushed as commit f67be21.

💡 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

backport Port of a pull request already in a different code base integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants