Skip to content

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

@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 <[email protected]>
@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