aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules
diff options
context:
space:
mode:
authorUbitUmarov2018-09-29 17:42:12 +0100
committerUbitUmarov2018-09-29 17:42:12 +0100
commited0e2623b9dd9e12f7660bb067166c294ad8a2ee (patch)
tree6c596402d4063d421cd013fdb03dba3e7509e39c /OpenSim/Region/OptionalModules
parentmore on culture issues (diff)
downloadopensim-SC-ed0e2623b9dd9e12f7660bb067166c294ad8a2ee.zip
opensim-SC-ed0e2623b9dd9e12f7660bb067166c294ad8a2ee.tar.gz
opensim-SC-ed0e2623b9dd9e12f7660bb067166c294ad8a2ee.tar.bz2
opensim-SC-ed0e2623b9dd9e12f7660bb067166c294ad8a2ee.tar.xz
add a few more gc collect in some spots
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs
index a1dd711..732735e 100644
--- a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Reflection; 30using System.Reflection;
31using System.Runtime;
31using System.Net; 32using System.Net;
32using System.IO; 33using System.IO;
33using System.Text; 34using System.Text;
@@ -214,9 +215,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady
214 m_scene.EventManager.OnEmptyScriptCompileQueue -= OnEmptyScriptCompileQueue; 215 m_scene.EventManager.OnEmptyScriptCompileQueue -= OnEmptyScriptCompileQueue;
215 m_scene.LoginLock = false; 216 m_scene.LoginLock = false;
216 217
218 GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce;
217 GC.Collect(); 219 GC.Collect();
218 GC.WaitForPendingFinalizers(); 220 GC.WaitForPendingFinalizers();
219 GC.Collect(); 221 GC.Collect();
222 GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.Default;
220 223
221 if (!m_scene.StartDisabled) 224 if (!m_scene.StartDisabled)
222 { 225 {