# HG changeset patch # User fzhinkin # Date 1412274691 25200 # Node ID 43ce58b4717b44a3069744c3ab4741f080d519da # Parent 2d6a3328ec99694e547c16e372395e9c97fe7a1d 8059226: Names of rtm_state_change and unstable_if deoptimization reasons were swapped in 8u40 Summary: fixed order of DeoptReason values declaration so now it matches the order used in jdk9 and the names order in Deoptimization::_trap_reason_name. Reviewed-by: kvn diff -r 2d6a3328ec99 -r 43ce58b4717b src/share/vm/runtime/deoptimization.hpp --- a/src/share/vm/runtime/deoptimization.hpp Tue Sep 30 08:29:26 2014 +0000 +++ b/src/share/vm/runtime/deoptimization.hpp Thu Oct 02 11:31:31 2014 -0700 @@ -60,8 +60,8 @@ Reason_predicate, // compiler generated predicate failed Reason_loop_limit_check, // compiler generated loop limits check failed Reason_speculate_class_check, // saw unexpected object class from type speculation + Reason_rtm_state_change, // rtm state change detected Reason_unstable_if, // a branch predicted always false was taken - Reason_rtm_state_change, // rtm state change detected Reason_LIMIT, // Note: Keep this enum in sync. with _trap_reason_name. Reason_RECORDED_LIMIT = Reason_bimorphic // some are not recorded per bc