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

Sergey Bylokhov serb at openjdk.org
Wed Jun 4 20:13:34 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!

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

Commit messages:
 - Backport 51be7db96f3fc32a7ddb24f8af19fb4fc0577aaf

Changes: https://git.openjdk.org/jdk11u-dev/pull/3042/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3042&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8211804
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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