Skip to content

Regression in steady_clock skew between pthreads #9783

@niklasf

Description

@niklasf

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions