[Mono-dev] Issues with GC due to libgc
Miguel de Icaza
miguel at novell.com
Tue Sep 29 19:09:03 EDT 2009
> > 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.
You just opened my eyes, thanks for the explanation.
Could you confirm that in this case:
AppDomain A: call Foo (obj a, obj c)
AppDomain B: enter Foo
AppDomain B: Unload A
That the objects "a" and "c" from AppDomain a would not live in the
More information about the Mono-devel-list