src/hotspot/share/runtime/deoptimization.cpp
changeset 50577 bf7e2684cd0a
parent 49972 37b2446d7f86
child 50623 5209d8a6303e
--- a/src/hotspot/share/runtime/deoptimization.cpp	Fri Jun 15 11:58:34 2018 +0530
+++ b/src/hotspot/share/runtime/deoptimization.cpp	Mon Jun 11 15:28:24 2018 +0200
@@ -2071,7 +2071,7 @@
 
 // Local derived constants.
 // Further breakdown of DataLayout::trap_state, as promised by DataLayout.
-const int DS_REASON_MASK   = DataLayout::trap_mask >> 1;
+const int DS_REASON_MASK   = ((uint)DataLayout::trap_mask) >> 1;
 const int DS_RECOMPILE_BIT = DataLayout::trap_mask - DS_REASON_MASK;
 
 //---------------------------trap_state_reason---------------------------------