Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix race condition in g_pfnGetSystemTimeAsFileTime initialization #22466

Merged
merged 2 commits into from
Feb 8, 2019

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Feb 7, 2019

Multiple threads initializing g_pfnGetSystemTimeAsFileTime at the same time can end up with different conclusions. Make the result consistent.

Multiple threads initializing g_pfnGetSystemTimeAsFileTime at the same time can end up with different conclusions. Make the result consistent.
@jkotas
Copy link
Member Author

jkotas commented Feb 7, 2019

#22383 (comment) for context

cc @filipnavara

@filipnavara
Copy link
Member

Thanks for addressing it!

@filipnavara
Copy link
Member

@dotnet-bot test OSX10.12 x64 Checked Innerloop Build and Test

@jkotas jkotas merged commit b1f7328 into dotnet:master Feb 8, 2019
@jkotas jkotas deleted the GetSystemTimeAsFileTime branch February 10, 2019 22:55
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…tnet/coreclr#22466)

Multiple threads initializing g_pfnGetSystemTimeAsFileTime at the same time can end up with different conclusions. Make the result consistent.


Commit migrated from dotnet/coreclr@b1f7328
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants