mirror of
https://github.com/CPunch/Cosmo.git
synced 2026-02-02 09:00:03 +00:00
fix more GC bugs
This commit is contained in:
@@ -54,9 +54,9 @@ struct CState
|
||||
int frameCount;
|
||||
CPanic *panic;
|
||||
|
||||
CObj *objects; // tracks all of our allocated objects
|
||||
CObj *userRoots; // user definable roots, this holds CObjs that should be considered "roots",
|
||||
// lets the VM know you are holding a reference to a CObj in your code
|
||||
CObj *objects; // tracks all of our allocated objects
|
||||
CObj *userRoots; // user definable roots, this holds CObjs that should be considered "roots",
|
||||
// lets the VM know you are holding a reference to a CObj in your code
|
||||
ArrayCObj grayStack; // keeps track of which objects *haven't yet* been traversed in our GC, but
|
||||
// *have been* found
|
||||
size_t allocatedBytes;
|
||||
|
||||
Reference in New Issue
Block a user