Skip to content

NativeAOT ComWrappers: support IReferenceTrackerHost #85137

@AustinWise

Description

@AustinWise

Currently NativeAOT's ComWrapper managed object wrapper supports being created with the CreateComInterfaceFlags.TrackerSupport flag. This causes the wrapper to implement IReferenceTrackerTarget.

What is missing is an implementation of IReferenceTrackerHost. Supporting IReferenceTrackerHost would enable tighter integreation between the .NET garbage collector and the unmanaged runtime. When implementing this, inspiration can be taken from CoreCLR's implementation.

This tracking issue captures some of the conversation from #85087

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions