[Mono-dev] Issues with GC due to libgc

Mark Probst mark.probst at gmail.com
Tue Sep 29 19:02:35 EDT 2009


On Tue, Sep 29, 2009 at 8:28 PM, Miguel de Icaza <miguel at novell.com> wrote:
> I am not sure I understand from the description above how would leaking
> the vtables kill SGen.

The problem is not leaking VTables, but "leaking" objects across
domains, i.e. having references from objects in one domain to objects
in another domain.  Once that domain is gone, so are the VTables, so
SGen cannot follow those references anymore, so it crashes.

The fix for this is not to keep the VTables alive - it's to not make
cross-domain references in the first place.

Mark


More information about the Mono-devel-list mailing list