Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TestHandleCollector() test #68285

Merged
merged 2 commits into from
Apr 20, 2022

Conversation

AaronRobinsonMSFT
Copy link
Member

Initialize local member in HandleCollector since it was the only one not initialized.
Update test to wait for pending finalizers since that is when the HandleCollector API will trigger the GC.

Fixes #66571

/cc @dotnet/interop-contrib

Initialize local member in HandleCollector
   since it was the only one not initialized.
Update test to wait for pending finalizers since that is when
   the HandleCollector API will trigger the GC.
@ghost
Copy link

ghost commented Apr 20, 2022

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

Initialize local member in HandleCollector since it was the only one not initialized.
Update test to wait for pending finalizers since that is when the HandleCollector API will trigger the GC.

Fixes #66571

/cc @dotnet/interop-contrib

Author: AaronRobinsonMSFT
Assignees: -
Labels:

area-System.Runtime.InteropServices

Milestone: 7.0.0

Co-authored-by: Elinor Fung <elfung@microsoft.com>
@AaronRobinsonMSFT AaronRobinsonMSFT merged commit c78bf2f into dotnet:main Apr 20, 2022
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the runtime_66571 branch April 20, 2022 22:05
@AaronRobinsonMSFT
Copy link
Member Author

Last commit was for comment updates. Skipping the full PR build.

directhex pushed a commit to directhex/runtime that referenced this pull request Apr 21, 2022
* Update TestHandleCollector() test

Initialize local member in HandleCollector
   since it was the only one not initialized.
Update test to wait for pending finalizers since that is when
   the HandleCollector API will trigger the GC.

Co-authored-by: Elinor Fung <elfung@microsoft.com>
@ghost ghost locked as resolved and limited conversation to collaborators May 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failure System.Runtime.InteropServices.HandleCollectorTests.TestHandleCollector
3 participants