Commit bd873709 authored by binji's avatar binji Committed by Commit bot

Use TimeTicks instead of Time in FutexEmulation::Wait.

BUG=v8:4357
R=machenbach@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/1285723003

Cr-Commit-Position: refs/heads/master@{#30113}
parent aa97b065
......@@ -101,15 +101,15 @@ Object* FutexEmulation::Wait(Isolate* isolate,
}
}
base::Time start_time = base::Time::NowFromSystemTime();
base::Time timeout_time = start_time + rel_timeout;
base::TimeTicks start_time = base::TimeTicks::Now();
base::TimeTicks timeout_time = start_time + rel_timeout;
wait_list_.Pointer()->AddNode(node);
Object* result;
while (true) {
base::Time current_time = base::Time::NowFromSystemTime();
base::TimeTicks current_time = base::TimeTicks::Now();
if (use_timeout && current_time > timeout_time) {
result = Smi::FromInt(Result::kTimedOut);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment