--- old/src/hotspot/share/c1/c1_LIRGenerator.cpp 2018-05-18 11:53:03.985469552 +0200 +++ new/src/hotspot/share/c1/c1_LIRGenerator.cpp 2018-05-18 11:53:03.665469556 +0200 @@ -2304,8 +2304,8 @@ move_to_phi(x->state()); int lo_key = x->lo_key(); - int hi_key = x->hi_key(); int len = x->length(); + assert(lo_key <= (lo_key + (len - 1)), "integer overflow"); LIR_Opr value = tag.result(); if (compilation()->env()->comp_level() == CompLevel_full_profile && UseSwitchProfiling) {