diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
-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 | ||