You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ICorDebugGCReferenceEnum does not enumerate CorGCReferenceType::CorReferenceFinalizer #39333
This potentially affects all .NET Framework & Core (all versions). I tested using .NET 4.8.4180.0 on Windows 19041.329. This would affect both x86 and x64 configuration (not sure about ARM).
Regression?
N/A
Other information
Current workarounds would be to use CLRMD (via SOS & DAC) to get finalizer queue address start/end or leveraging ICorProfiler apis for Finalizer callbacks.
I looked at this last week with @WilliamXieMSFT, it's just plain broken and there's no workaround to make the API work.
The options for getting finalizer references are:
Ask us to fix this API, which wouldn't happen until .net 6 at the earliest and won't be backported
Use the same approach SOS does to scan the finalizer queue, where you call in to the DAC to get the address of the finalizer queue and then manually walk it
Use ICorProfilerCallback::FinalizeableObjectQueued to get notified of objects as they are put in the finalizer queue
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.
This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.
Activity
Dotnet-GitSync-Bot commentedon Jul 14, 2020
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
willxie-eng commentedon Jul 14, 2020
area-Diagnostics-coreclr @tommcdon
josalem commentedon Jul 15, 2020
CC @dotnet/dotnet-diag @mikem8361
tommcdon commentedon Jul 20, 2020
@davmason
davmason commentedon Jul 20, 2020
I looked at this last week with @WilliamXieMSFT, it's just plain broken and there's no workaround to make the API work.
The options for getting finalizer references are:
dotnet-policy-service commentedon Sep 12, 2025
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.
This process is part of our issue cleanup automation.
dotnet-policy-service commentedon Sep 26, 2025
This issue will now be closed since it had been marked
no-recent-activitybut received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.