< prev index next >

src/hotspot/share/c1/c1_LIRGenerator.cpp

Print this page

        

*** 2302,2313 **** // move values into phi locations move_to_phi(x->state()); int lo_key = x->lo_key(); - int hi_key = x->hi_key(); int len = x->length(); LIR_Opr value = tag.result(); if (compilation()->env()->comp_level() == CompLevel_full_profile && UseSwitchProfiling) { ciMethod* method = x->state()->scope()->method(); ciMethodData* md = method->method_data_or_null(); --- 2302,2313 ---- // move values into phi locations move_to_phi(x->state()); int lo_key = x->lo_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) { ciMethod* method = x->state()->scope()->method(); ciMethodData* md = method->method_data_or_null();
< prev index next >