diff options
author | UbitUmarov | 2018-09-29 17:42:12 +0100 |
---|---|---|
committer | UbitUmarov | 2018-09-29 17:42:12 +0100 |
commit | ed0e2623b9dd9e12f7660bb067166c294ad8a2ee (patch) | |
tree | 6c596402d4063d421cd013fdb03dba3e7509e39c /OpenSim/Region/OptionalModules/Scripting | |
parent | more on culture issues (diff) | |
download | opensim-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/Scripting')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs | 3 |
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 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | 30 | using System.Reflection; |
31 | using System.Runtime; | ||
31 | using System.Net; | 32 | using System.Net; |
32 | using System.IO; | 33 | using System.IO; |
33 | using System.Text; | 34 | using 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 | { |