# HG changeset patch # User kbarrett # Date 1466714801 14400 # Node ID 9b66274060199a5d94b8041c31d814217c255489 # Parent ecedc976bb8b0b8bc9b48db9a6481f7a179c85aa 8157758: JDK9 does not compile on Linux with GCC 6.1 because left-shifting a negative number has undefined behavior Summary: Replace shifts of -1 with shifts of ~0u. Reviewed-by: kbarrett, mockner Contributed-by: alexhenrie24@gmail.com diff -r ecedc976bb8b -r 9b6627406019 hotspot/src/share/vm/code/dependencies.hpp --- a/hotspot/src/share/vm/code/dependencies.hpp Thu Jun 23 16:27:34 2016 +0000 +++ b/hotspot/src/share/vm/code/dependencies.hpp Thu Jun 23 16:46:41 2016 -0400 @@ -168,7 +168,7 @@ LG2_TYPE_LIMIT = 4, // assert(TYPE_LIMIT <= (1<