mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-09 19:21:41 +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:
1 parent
58a95ba95c
commit
13d2e44ff5
3 files changed
+12
No files matched your search
@@ -777,6 +777,10 @@ void ScriptInterface::DumpHeap()
|
||||
fprintf(stderr, "# Bytes allocated after GC: %d\n", JS_GetGCParameter(m->m_rt, JSGC_BYTES));
|
||||
}
|
||||
|
||||
void ScriptInterface::MaybeGC()
|
||||
{
|
||||
JS_MaybeGC(m->m_cx);
|
||||
}
|
||||
|
||||
class ValueCloner
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user