Status: New
Owner: ----

New issue 882 by tobias.kaes: OS::Ticks on windows wraps around every 70 minutes
http://code.google.com/p/v8/issues/detail?id=882

It's probably a minor issue because OS::Ticks is not used widely, but on windows [1] it wraps around every 70 minutes instead of the usual 49 days.

Reason is that timeGetTime returns a DWORD, so the multiplication with 1000 is performed as 32-bit integer, causing overflow and truncation for values greater than about 70 minutes. The correct way would be to cast *before* multiplication as is done in platform-posix implementation of OS::Ticks [2].

[1] http://code.google.com/p/v8/source/browse/branches/bleeding_edge/src/platform-win32.cc#624 [2] http://code.google.com/p/v8/source/browse/branches/bleeding_edge/src/platform-posix.cc#93


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to