Reviewers: Michael Achenbach (OOO),
Description:
Use TimeTicks instead of Time in FutexEmulation::Wait.
BUG=v8:4357
R=machenb...@chromium.org
LOG=n
Please review this at https://codereview.chromium.org/1285723003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+3, -3 lines):
M src/futex-emulation.cc
Index: src/futex-emulation.cc
diff --git a/src/futex-emulation.cc b/src/futex-emulation.cc
index
39f43dd7dd8c998e8ec571b5942194827a240f75..5a0ce07f1a545389e8d5431f09ff0adf39acc178
100644
--- a/src/futex-emulation.cc
+++ b/src/futex-emulation.cc
@@ -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;
--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.