Skip to content

Conversation

@stephentoub
Copy link
Member

I previously did a pass looking for opportunities. Finding a few more, as well as fixing some misuse of existing methods.

I previously did a pass looking for opportunities.  Finding a few more, as well as fixing some misuse of existing methods.
@ghost ghost added the area-Meta label Jul 15, 2021
LazyInitializer.EnsureInitialized(ref s_instanceIdentifier, ref s_classSyncObject, () => $"{Guid.NewGuid()}:");

// Double-checked locking pattern requires volatile for read/write synchronization
private volatile bool _traceIdentifierInited;
Copy link
Member

Choose a reason for hiding this comment

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

String formatting using Convert.ToString a few lines below can use cleanup as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Looks like there's another handful of call sites. I'll merge this one and address Convert.ToString in a subsequent PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

3 participants