Skip to content

Fix: Assembly name translator race condition#4854

Merged
rockfordlhotka merged 1 commit intomainfrom
bug/4852-race-condition-in-assembly-name-translator
Mar 28, 2026
Merged

Fix: Assembly name translator race condition#4854
rockfordlhotka merged 1 commit intomainfrom
bug/4852-race-condition-in-assembly-name-translator

Conversation

@StefanOssendorf
Copy link
Copy Markdown
Contributor

Fixes #4852

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a long-standing multi-threading race in AssemblyNameTranslator that could return partially initialized assembly name strings and break deserialization (Issue #4852).

Changes:

  • Replaced ad-hoc static caching of core/CSLA assembly name strings with Lazy<string> initialization.
  • Centralized assembly-name extraction logic into a single helper (GetAssemblyTypeName).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rockfordlhotka rockfordlhotka merged commit 2121809 into main Mar 28, 2026
6 checks passed
@rockfordlhotka rockfordlhotka deleted the bug/4852-race-condition-in-assembly-name-translator branch March 28, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assembly name translator race condition

3 participants