[jdk11u-dev] RFR: 8211804: Constant AO_UNUSED_MBZ uses left shift of negative value [v2]

Sergey Bylokhov serb at openjdk.org
Wed Aug 13 03:28:37 UTC 2025


> Hi all,
> 
> This pull request contains a backport of commit [51be7db9](https://github.com/openjdk/jdk/commit/51be7db96f3fc32a7ddb24f8af19fb4fc0577aaf) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
> 
> The commit being backported was authored by Kim Barrett on 9 Oct 2018 and was reviewed by Alan Bateman.
> 
> This patch fixes a build error on macOS with Xcode 16.4 that can't be resolved using `--disable-warnings-as-errors`.
> 
> /jdk11u-dev/src/jdk.pack/share/native/common-unpack/constants.h:206:33: error: expression is not an integral constant expression
>   206 |     AO_UNUSED_MBZ             = (-1)<<13, // options bits reserved for future use.
>       |                                 ^~~~~~~~
> 
> 
> 
> 
> Thanks!

Sergey Bylokhov has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'openjdk:master' into backport-mrserb-51be7db9-master
 - Backport 51be7db96f3fc32a7ddb24f8af19fb4fc0577aaf

-------------

Changes:
  - all: https://git.openjdk.org/jdk11u-dev/pull/3042/files
  - new: https://git.openjdk.org/jdk11u-dev/pull/3042/files/fc00dffd..7294afb0

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3042&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3042&range=00-01

  Stats: 3702 lines in 167 files changed: 927 ins; 2636 del; 139 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/3042.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3042/head:pull/3042

PR: https://git.openjdk.org/jdk11u-dev/pull/3042


More information about the jdk-updates-dev mailing list