git: openjdk/jdk8u-dev: 8157758: JDK9 does not compile on Linux with GCC 6.1 because left-shifting a negative number has undefined behavior

Sergey Bylokhov serb at openjdk.org
Thu Jan 8 18:28:02 UTC 2026


Changeset: 5e3692f7
Branch: master
Author:    Sergey Bylokhov <serb at openjdk.org>
Date:      2026-01-08 18:23:42 +0000
URL:       https://git.openjdk.org/jdk8u-dev/commit/5e3692f7818b8d31a764beec1f3164dc30046c71

8157758: JDK9 does not compile on Linux with GCC 6.1 because left-shifting a negative number has undefined behavior

Replace shifts of -1 with shifts of ~0u.

Backport-of: 4abb5e4aafe05871a07d510f002a38298fe4dbb2

! hotspot/src/share/vm/code/dependencies.hpp
! hotspot/src/share/vm/oops/cpCache.hpp



More information about the jdk8u-dev-changes mailing list