We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da5608a commit 6c41d03Copy full SHA for 6c41d03
src/CLR/Core/GarbageCollector.cpp
@@ -706,6 +706,17 @@ void CLR_RT_GarbageCollector::Assembly_Mark()
706
707
#if !defined(NANOCLR_APPDOMAINS)
708
CheckMultipleBlocks(pASSM->staticFields, pASSM->staticFieldsCount);
709
+
710
+ // Mark generic static fields for each TypeSpec
711
+ for (int i = 0; i < pASSM->tablesSize[TBL_TypeSpec]; i++)
712
+ {
713
+ CLR_RT_TypeSpec_CrossReference &ts = pASSM->crossReferenceTypeSpec[i];
714
715
+ if (ts.genericStaticFields != nullptr && ts.genericStaticFieldsCount > 0)
716
717
+ CheckMultipleBlocks(ts.genericStaticFields, ts.genericStaticFieldsCount);
718
+ }
719
720
#endif
721
722
CheckSingleBlock(&pASSM->file);
0 commit comments