Skip to content

Conversation

@AlexUstinov
Copy link
Contributor

This is to eliminate GetGenericMethodDefinition calls on hot paths because it leads to lock contention under high load.
'GetGenericMethodDefinition' calls 'System.RuntimeType.GetMethodBase' under the hood and this method in turn may cause lock contention (See dotnet/runtime#35851 for details).

Eliminate GetGenericMethodDefinition method call in MemberCompilerProvider class
…d to thread contention and to lock convoy issue (#16)
alex-kulakov
alex-kulakov previously approved these changes Sep 10, 2020
@alex-kulakov alex-kulakov changed the base branch from master to 6.0 September 10, 2020 18:10
@alex-kulakov alex-kulakov dismissed their stale review September 10, 2020 18:10

The base branch was changed.

@alex-kulakov alex-kulakov changed the title No GetGenericMethodDefinition method clalls No GetGenericMethodDefinition method calls Sep 10, 2020
@alex-kulakov alex-kulakov merged commit 4aa0f6e into DataObjects-NET:6.0 Sep 10, 2020
@AlexUstinov AlexUstinov deleted the no-getgenericmethoddefinition-clalls branch September 10, 2020 22:27
alex-kulakov pushed a commit that referenced this pull request Jan 20, 2022
* Session.WithTag() method()

* Use Scoped TagContext for tagging

* Tag query with all nested TagContexts

* Minor improvement

* Null check

* Make TagContext constructor internal
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.

2 participants