Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

WeakReference tracks resurrection #239

Open
@cpfister

Description

@cpfister

In the full .NET framework, WeakReferences by default become null when the garbage collector detects that the corresponding target has become unreachable. After the references are updated, the finalizer is eventually run - and if there is no object resurrection, the memory is reclaimed.
An additional flag can be specified if one wishes to track an object during the finalizer and after resurrection.

In the Micro Framework, I observed WeakReferences not becoming null while a finalizer is running. Therefore, I assume that there is a difference to the full framework and that Micro Framework only supports long weak references.

http://msdn.microsoft.com/en-us/library/ms404247(v=vs.110).aspx

I suggest that short weak reference support should be implemented and exposed as the default, and until then that the documentation is updated to point out the difference to the full framework.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions