Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix recursive assembly spec parsing with textual PGO #78035

Merged

Conversation

jakobbotsch
Copy link
Member

Fix #77971

* Add thread local to skip textual PGO data if invoked recursively
* Change AssemblyNameParser.ParseVersion to pass
  NumberFormatInfo.InvariantInfo in its ushort.TryParse invocation.
  This avoids initializing globalization from within this parsing, which
  was causing problems in the textual PGO scenario.

Fix dotnet#77971
@jakobbotsch
Copy link
Member Author

Failure is #77802 according to build analysis

@jakobbotsch jakobbotsch merged commit 29a2bc5 into dotnet:main Nov 11, 2022
@jakobbotsch jakobbotsch deleted the fix-recursive-assembly-spec-parsing branch November 11, 2022 21:12
@ghost ghost locked as resolved and limited conversation to collaborators Dec 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recursive assembly spec parsing with textual PGO
2 participants