forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid expensive ref counting for CompareInfo on Linux (dotnet/coreclr…
…#25117) * change SafeSortHandle to be CriticalSortHandle to avoid expensive ref counting * seal the CriticalSortHandle class * use IntPtr instead of CriticalHandle to avoid resurrection issues. It's ok to never free the handle * introduce cache for sort handles to prevent from memory leak in certain scenarios * move the sort key logic to a dedicated helper type to avoid static field initialization order issues * lock the dictionary * simplify the code * set the charset to Ansi * Apply suggestions from code review Co-Authored-By: Jan Kotas <[email protected]> * don't use var Commit migrated from dotnet/coreclr@9b0dcaa
- Loading branch information
Showing
3 changed files
with
55 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters