RFR: 8145096: Undefined behaviour in HotSpot

Andrew Haley aph at redhat.com
Thu Dec 17 13:37:00 UTC 2015

OK.  I think this change addresses all of your points.


The complex (and incorrect)

   ((jlong)CONST64(1) << (jlong)(BitsPerJavaLong - con)) - CONST64(1);

is merely a difficult way to write

   jlong((~ UCONST64(0)) >> con)


More information about the hotspot-dev mailing list