Run GC frequently in the simulation script context, to keep memory usage down

This was SVN commit r8622.
This commit is contained in:
Ykkrosh committed 2010-11-15 15:03:40 +00:00
1 parent 58a95ba95c
commit 13d2e44ff5
3 files changed
+12

No files matched your search

+2
View File
@@ -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);