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.
Improve ProcessManager.Win (dotnet#32010)
* ---- Style changes start here ---- * Remove unnecessary using directives * Remove unnecessary assignments * Use IntPtr.Zero * Replace magic numbers * Remove unused parameters * Replace constructor with initializer * Simplify delegate interop * Inline temporary variables * Remove unnecessary checked keyword * Remove unnecessary cast * Introduce using statement * ---- Style changes end here ---- * Remove magic sleep * Prealloc list * Reduce copying * Use ArrayPool * Support long path * Improve P/Invoke signatures * Optimize modules enumeration * Rename and move HandleLastWin32Error * while (true) * Move comments near codes * Revert "Support long path" This reverts commit 1f06435. * Revert "Introduce using statement" This reverts commit e3d383a. * Revert "Remove magic sleep" This reverts commit d8bc001. * Add braces * Simplify initialization * Fix last Win32 error * Avoid reallocation if modules count decreased * Nits * Simplify codes
- Loading branch information
Showing
5 changed files
with
213 additions
and
207 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
Oops, something went wrong.