diff options
author | UbitUmarov | 2017-05-09 23:22:36 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-09 23:22:36 +0100 |
commit | 09c4952c6d60be9a2344c4295881bbb20e50d9eb (patch) | |
tree | 3ce91c768ab37d966fa986a593cd4cc33f792328 /OpenSim/Region/Application/OpenSim.cs | |
parent | update mysql connector to v6.9.9 .net4.5 (diff) | |
parent | let .net decide GC mode from its defaults on the platform (diff) | |
download | opensim-SC-09c4952c6d60be9a2344c4295881bbb20e50d9eb.zip opensim-SC-09c4952c6d60be9a2344c4295881bbb20e50d9eb.tar.gz opensim-SC-09c4952c6d60be9a2344c4295881bbb20e50d9eb.tar.bz2 opensim-SC-09c4952c6d60be9a2344c4295881bbb20e50d9eb.tar.xz |
merge
Diffstat (limited to 'OpenSim/Region/Application/OpenSim.cs')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 58178bc..f9f103a 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -33,6 +33,7 @@ using System.Diagnostics; | |||
33 | using System.IO; | 33 | using System.IO; |
34 | using System.Linq; | 34 | using System.Linq; |
35 | using System.Reflection; | 35 | using System.Reflection; |
36 | using System.Runtime; | ||
36 | using System.Text; | 37 | using System.Text; |
37 | using System.Text.RegularExpressions; | 38 | using System.Text.RegularExpressions; |
38 | using System.Timers; | 39 | using System.Timers; |
@@ -124,8 +125,11 @@ namespace OpenSim | |||
124 | Util.InitThreadPool(stpMinThreads, stpMaxThreads); | 125 | Util.InitThreadPool(stpMinThreads, stpMaxThreads); |
125 | 126 | ||
126 | m_log.Info("[OPENSIM MAIN]: Using async_call_method " + Util.FireAndForgetMethod); | 127 | m_log.Info("[OPENSIM MAIN]: Using async_call_method " + Util.FireAndForgetMethod); |
128 | |||
129 | m_log.InfoFormat("[OPENSIM MAIN] Running GC in {0} mode", GCSettings.IsServerGC ? "server":"workstation"); | ||
127 | } | 130 | } |
128 | 131 | ||
132 | #if (_MONO) | ||
129 | private static Mono.Unix.UnixSignal[] signals; | 133 | private static Mono.Unix.UnixSignal[] signals; |
130 | 134 | ||
131 | 135 | ||
@@ -140,6 +144,7 @@ namespace OpenSim | |||
140 | MainConsole.Instance.RunCommand("shutdown"); | 144 | MainConsole.Instance.RunCommand("shutdown"); |
141 | } | 145 | } |
142 | }); | 146 | }); |
147 | #endif | ||
143 | 148 | ||
144 | /// <summary> | 149 | /// <summary> |
145 | /// Performs initialisation of the scene, such as loading configuration from disk. | 150 | /// Performs initialisation of the scene, such as loading configuration from disk. |
@@ -150,6 +155,7 @@ namespace OpenSim | |||
150 | m_log.Info("========================= STARTING OPENSIM ========================="); | 155 | m_log.Info("========================= STARTING OPENSIM ========================="); |
151 | m_log.Info("===================================================================="); | 156 | m_log.Info("===================================================================="); |
152 | 157 | ||
158 | #if (_MONO) | ||
153 | if(!Util.IsWindows()) | 159 | if(!Util.IsWindows()) |
154 | { | 160 | { |
155 | try | 161 | try |
@@ -168,6 +174,7 @@ namespace OpenSim | |||
168 | m_log.Debug("Exception was: ", e); | 174 | m_log.Debug("Exception was: ", e); |
169 | } | 175 | } |
170 | } | 176 | } |
177 | #endif | ||
171 | //m_log.InfoFormat("[OPENSIM MAIN]: GC Is Server GC: {0}", GCSettings.IsServerGC.ToString()); | 178 | //m_log.InfoFormat("[OPENSIM MAIN]: GC Is Server GC: {0}", GCSettings.IsServerGC.ToString()); |
172 | // http://msdn.microsoft.com/en-us/library/bb384202.aspx | 179 | // http://msdn.microsoft.com/en-us/library/bb384202.aspx |
173 | //GCSettings.LatencyMode = GCLatencyMode.Batch; | 180 | //GCSettings.LatencyMode = GCLatencyMode.Batch; |