src/hotspot/share/gc/z/zUncommitter.cpp
changeset 58237 944b58cbaf93
parent 54834 39ba09047e19
equal deleted inserted replaced
58236:312126722609 58237:944b58cbaf93
    34   create_and_start();
    34   create_and_start();
    35 }
    35 }
    36 
    36 
    37 bool ZUncommitter::idle(uint64_t timeout) {
    37 bool ZUncommitter::idle(uint64_t timeout) {
    38   // Idle for at least one second
    38   // Idle for at least one second
    39   const uint64_t expires = os::elapsedTime() + MAX2(timeout, 1ul);
    39   const uint64_t expires = os::elapsedTime() + MAX2<uint64_t>(timeout, 1);
    40 
    40 
    41   for (;;) {
    41   for (;;) {
    42     // We might wake up spuriously from wait, so always recalculate
    42     // We might wake up spuriously from wait, so always recalculate
    43     // the timeout after a wakeup to see if we need to wait again.
    43     // the timeout after a wakeup to see if we need to wait again.
    44     const uint64_t now = os::elapsedTime();
    44     const uint64_t now = os::elapsedTime();