-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
I am measuring std::chrono::steady_clock on the main thread and on a pthread, with a clear happens-before relationship. So the time difference should always be non-negative.
Starting in release 1.39.0 (both upstream and fastcomp), I see negative time differences down to around -100ms.
I bisected the issue and found a5117d7 (Fix pthreads with closure compiler (#9569)) as the first "bad" commit.
(While bisecting, I noticed previous versions also sometimes have negative time differences, but the worst I found was -9ms. I guess it's difficult to guarantee steady clock synchronization between WASM pthreads and I can easily find a workaround for my use case. Reporting this just in case something has been overlooked in a5117d7. If not, feel free to close.)