- Make TypeTable a GC root.

- Instantiate some basic types.

SVN r2298 (scripting)
This commit is contained in:
Randy Heit 2010-04-22 04:12:42 +00:00
commit dde5e1928f
3 changed files with 345 additions and 16 deletions

View file

@ -356,11 +356,8 @@ static void MarkRoot()
Mark(*(afunc->VMPointer));
}
}
// Mark classes
for (unsigned j = 0; j < PClass::AllClasses.Size(); ++j)
{
Mark(PClass::AllClasses[j]);
}
// Mark types
TypeTable.Mark();
// Mark bot stuff.
Mark(bglobal.firstthing);
Mark(bglobal.body1);