mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-12 05:56:15 +00:00
Run GC frequently in the simulation script context, to keep memory usage down
This was SVN commit r8622.
This commit is contained in:
@@ -253,6 +253,8 @@ public:
|
||||
};
|
||||
#define LOCAL_ROOT_SCOPE LocalRootScope scope(GetContext()); if (! scope.OK()) return false
|
||||
|
||||
void MaybeGC();
|
||||
|
||||
private:
|
||||
bool CallFunction_(jsval val, const char* name, size_t argc, jsval* argv, jsval& ret);
|
||||
bool Eval_(const char* code, jsval& ret);
|
||||
|
||||
Reference in New Issue
Block a user