do GC before table array is allocated

This commit is contained in:
2020-11-17 14:32:20 -06:00
parent 329d34aa43
commit 7182f5ccd1
3 changed files with 17 additions and 14 deletions

View File

@@ -46,6 +46,7 @@
#endif
COSMO_API void *cosmoM_reallocate(CState *state, void *buf, size_t oldSize, size_t newSize);
COSMO_API bool cosmoM_checkGarbage(CState *state, size_t needed); // returns true if GC event was triggered
COSMO_API void cosmoM_collectGarbage(CState *state);
COSMO_API void cosmoM_updateThreshhold(CState *state);