are you sure this one is only accessed and set from one Thread ? If not you need to make it volatile to be sure the real value is visible in all cases