Skip to content

[NativeAOT] Unify implementation of Weak References in all runtimes. #75587

Description

@VSadov

This mostly covers unification with CoreCLR.
Unification with Mono is nearly done in #76173

A followup to #75436
Since we employ eager finalization, some simplifications are possible. Managed implementation in NativeAOT would be an example.

Ideally CoreClr switches to a managed implementation like in NativeAOT, which seems a lot simpler as it does not need to deal with concerns such as protecting the referenced object and the weak reference instance itself.
The problematic part could be the COM/WINRT/IWeakReference support. Perhaps it can be done via FCall callouts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions