xamarin / Xamarin.PropertyEditing

MIT License
24 stars 16 forks source link

Stores property list delegate to avoid GC collect it #820

Closed netonjm closed 2 years ago

netonjm commented 2 years ago

Using registrar and netcore6 makes GC be more aggressive collecting objects, to ensure delegate is not collected we keep the reference.

https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1576420

Therzok commented 2 years ago

Using registrar and netcore6 makes GC be more aggressive collecting objects, to ensure delegate is not collected we keep the reference.

This is not what's happening. The registrar is circumventing code generation of the managed delegate field that made xammac "work". See https://github.com/xamarin/xamarin-macios/issues/11328