Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/coreclr/interop/trackerobjectmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ namespace

STDMETHODIMP HostServices::ReleaseDisconnectedReferenceSources()
{
return InteropLibImports::WaitForRuntimeFinalizerForExternal();
// This could lead to deadlock if finalizer thread is trying to get back to this thread, because we are
// not pumping anymore. Disable this for now. See: https://github.com/dotnet/runtime/issues/109538.
// return InteropLibImports::WaitForRuntimeFinalizerForExternal();
return S_OK;
}

STDMETHODIMP HostServices::NotifyEndOfReferenceTrackingOnThread()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,9 @@ internal static unsafe int IReferenceTrackerHost_ReleaseDisconnectedReferenceSou
{
try
{
GC.WaitForPendingFinalizers();
// This could lead to deadlock if finalizer thread is trying to get back to this thread, because we are
// not pumping anymore. Disable this for now. See: https://github.com/dotnet/runtime/issues/109538.
// GC.WaitForPendingFinalizers();
return HResults.S_OK;
}
catch (Exception e)
Expand Down
Loading