[futex] Avoid accumulation errors in futex wait timeout
authorbinji <binji@chromium.org>
Wed, 5 Aug 2015 20:58:06 +0000 (13:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 5 Aug 2015 20:58:15 +0000 (20:58 +0000)
commitad1690d686575baadf8aa0fa820b0438e1a4b9a4
tree0a73e20f300eac8f4b3b5320bfc489062175c61b
parentcd455055a0ed6d29798dba13f43c8f5617cd5823
[futex] Avoid accumulation errors in futex wait timeout

The code previously used a relative timeout and accumulated wait times to see
if the timeout was exceeded. Now we convert the timeout into an absolute time,
and always compare the current time against that.

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

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

Cr-Commit-Position: refs/heads/master@{#30036}
src/futex-emulation.cc