Skip to content

Data race in linux uv__hrtime() when setting fast_clock_id #2884

@beauby

Description

@beauby

The lazy initialization of fast_clock_id can race when two uv loops are spawned from the same process. The race (introduced in 21c37a7) seems harmless as the initialization seems deterministic, but it makes TSAN complain.

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