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/ClientStack/Linden/UDP/LLClientView.cs | |
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 '')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index bd178c0..516c1e5 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -30,6 +30,7 @@ using System.Collections; | |||
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Net; | 31 | using System.Net; |
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.Runtime; | ||
33 | using System.Text; | 34 | using System.Text; |
34 | using System.Threading; | 35 | using System.Threading; |
35 | using System.Timers; | 36 | using System.Timers; |
@@ -635,9 +636,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
635 | 636 | ||
636 | if(m_scene.GetNumberOfClients() == 0) | 637 | if(m_scene.GetNumberOfClients() == 0) |
637 | { | 638 | { |
639 | GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce; | ||
638 | GC.Collect(); | 640 | GC.Collect(); |
639 | GC.WaitForPendingFinalizers(); | 641 | GC.WaitForPendingFinalizers(); |
640 | GC.Collect(); | 642 | GC.Collect(); |
643 | GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.Default; | ||
641 | } | 644 | } |
642 | } | 645 | } |
643 | 646 | ||