[jdk11u-dev] Integrated: 8211804: Constant AO_UNUSED_MBZ uses left shift of negative value
Sergey Bylokhov
serb at openjdk.org
Wed Aug 13 21:37:14 UTC 2025
On Wed, 4 Jun 2025 03:34:46 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> 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!
This pull request has now been integrated.
Changeset: 44f94ee8
Author: Sergey Bylokhov <serb at openjdk.org>
URL: https://git.openjdk.org/jdk11u-dev/commit/44f94ee8bc6c934be1f4435227a81e6072361110
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
8211804: Constant AO_UNUSED_MBZ uses left shift of negative value
Use unsigned shift.
Backport-of: 51be7db96f3fc32a7ddb24f8af19fb4fc0577aaf
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/3042
More information about the jdk-updates-dev
mailing list