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

Improves thread safety of lazy initializations #641

Merged
merged 3 commits into from
Jan 28, 2020

Commits on Jan 24, 2020

  1. Improves thread safety of lazy initializations

    The Interlocked.Exchange calls will ensure that the same object is
    returned from each call even under a race.  That's not necessarily
    required, but it should also make sure that no write re-ordering issues
    occur on platforms that allow it.  And it also makes the possibility
    of thread safety issues explicit.
    scott-ferguson-unity committed Jan 24, 2020
    Configuration menu
    Copy the full SHA
    df63b27 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4d82dab View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2020

  1. Updated lazy initialization for AssemblyNameReference.PublicKeyToken

    Intialize it to null to match pattern for the other references.
    Fixes the case were the lazy initialization would break when
    public_key_token was Empty<byte>.Array.
    scott-ferguson-unity committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    227f665 View commit details
    Browse the repository at this point in the history