-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes hang in WinUI apps published to AOT (#104583)
* Fix exception during GC callback in WinUI scenarios due to removing from and adding to the nativeObjectReference list around the same time and causing removal to fail. * Move common logic * Change collection type to HashSet to match with JIT implementation and to improve performance of remove given it now takes a lock * Move to using a custom collection to protect against GC freezing threads during add / remove. * Address PR feedback by using alternative approach to handle race * Address PR feedback * Address PR feedback around handle being freed.
- Loading branch information
1 parent
7e3543d
commit d7948dc
Showing
1 changed file
with
242 additions
and
22 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