File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -1975,19 +1975,14 @@ void Module::FreeClassTables()
1975
1975
{
1976
1976
TypeHandle th = pEntry->GetTypeHandle ();
1977
1977
1978
- // If class is not fully loaded there is nothing to destroy or notify about
1979
- if (!th.IsRestored ())
1980
- continue ;
1981
-
1982
- // Type desc is handled differently
1978
+ // Array EEClass doesn't need notification and there is no work for Destruct()
1983
1979
if (th.IsTypeDesc ())
1984
1980
continue ;
1985
1981
1986
1982
MethodTable * pMT = th.AsMethodTable ();
1987
1983
EEClass::NotifyUnload (pMT, true );
1988
1984
1989
1985
// We need to call destruct on instances of EEClass whose "canonical" dependent lives in this table
1990
- // There is nothing interesting to destruct on array EEClass
1991
1986
if (pMT->IsCanonicalMethodTable ())
1992
1987
{
1993
1988
pMT->GetClass ()->Destruct (pMT);
You can’t perform that action at this time.
0 commit comments