src/hotspot/share/runtime/threadSMR.inline.hpp
changeset 59252 623722a6aeb9
parent 59249 29b0d0b61615
equal deleted inserted replaced
59251:4cbfa5077d68 59252:623722a6aeb9
    68     uint cur_value = _tlh_time_max;
    68     uint cur_value = _tlh_time_max;
    69     if (new_value <= cur_value) {
    69     if (new_value <= cur_value) {
    70       // No need to update max value so we're done.
    70       // No need to update max value so we're done.
    71       break;
    71       break;
    72     }
    72     }
    73     if (Atomic::cmpxchg(new_value, &_tlh_time_max, cur_value) == cur_value) {
    73     if (Atomic::cmpxchg(&_tlh_time_max, cur_value, new_value) == cur_value) {
    74       // Updated max value so we're done. Otherwise try it all again.
    74       // Updated max value so we're done. Otherwise try it all again.
    75       break;
    75       break;
    76     }
    76     }
    77   }
    77   }
    78 }
    78 }