From 38ea080d254d7a6bbaffcfcfecfc2cfd348156e0 Mon Sep 17 00:00:00 2001 From: Deiz Date: Sun, 2 Sep 2012 01:50:16 +0000 Subject: [PATCH] Increase the AI's js runtime size to 32 MB for the time being. This was SVN commit r12594. --- source/simulation2/components/CCmpAIManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/simulation2/components/CCmpAIManager.cpp b/source/simulation2/components/CCmpAIManager.cpp index c2470c1a6f..5cbe593a3b 100644 --- a/source/simulation2/components/CCmpAIManager.cpp +++ b/source/simulation2/components/CCmpAIManager.cpp @@ -261,7 +261,10 @@ public: }; CAIWorker() : - m_ScriptRuntime(ScriptInterface::CreateRuntime()), + // TODO: Passing a 32 MB argument to CreateRuntime() is a temporary fix + // to prevent frequent AI out-of-memory crashes. The argument should be + // removed as soon as AI data-sharing has been implemented. See #1650. + m_ScriptRuntime(ScriptInterface::CreateRuntime(33554432)), m_ScriptInterface("Engine", "AI", m_ScriptRuntime), m_TurnNum(0), m_CommandsComputed(true),