log processor arch

master
UbitUmarov 2020-03-18 17:41:29 +00:00
parent 5401e323dc
commit 59d3f9fa62
3 changed files with 7 additions and 11 deletions

View File

@ -108,7 +108,7 @@ namespace OpenSim.Framework.Servers
return true; return true;
return false; return false;
} }
/// <summary> /// <summary>
/// Must be overriden by child classes for their own server specific startup behaviour. /// Must be overriden by child classes for their own server specific startup behaviour.
/// </summary> /// </summary>
@ -190,8 +190,8 @@ namespace OpenSim.Framework.Servers
//m_log.Info("[STARTUP]: Virtual machine runtime version: " + Environment.Version + Environment.NewLine); //m_log.Info("[STARTUP]: Virtual machine runtime version: " + Environment.Version + Environment.NewLine);
m_log.InfoFormat( m_log.InfoFormat(
"[STARTUP]: Operating system version: {0}, .NET platform {1}, {2}-bit\n", "[STARTUP]: Operating system version: {0}, .NET platform {1}, {2}-bit\n",
Environment.OSVersion, Environment.OSVersion.Platform, Util.Is64BitProcess() ? "64" : "32"); Environment.OSVersion, Environment.OSVersion.Platform, Environment.Is64BitProcess ? "64" : "32");
m_log.Info("[STARTUP]: Processor Architecture: " + System.Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE"));
try try
{ {
StartupSpecific(); StartupSpecific();

View File

@ -140,7 +140,7 @@ namespace OpenSim.Framework.Servers
//m_log.Info("[STARTUP]: Virtual machine runtime version: " + Environment.Version + Environment.NewLine); //m_log.Info("[STARTUP]: Virtual machine runtime version: " + Environment.Version + Environment.NewLine);
m_log.InfoFormat( m_log.InfoFormat(
"[SERVER BASE]: Operating system version: {0}, .NET platform {1}, {2}-bit", "[SERVER BASE]: Operating system version: {0}, .NET platform {1}, {2}-bit",
Environment.OSVersion, Environment.OSVersion.Platform, Util.Is64BitProcess() ? "64" : "32"); Environment.OSVersion, Environment.OSVersion.Platform, Environment.Is64BitProcess ? "64" : "32");
} }
public void RegisterCommonAppenders(IConfig startupConfig) public void RegisterCommonAppenders(IConfig startupConfig)

View File

@ -113,7 +113,7 @@ namespace OpenSim.Framework
RegressionTest, RegressionTest,
QueueUserWorkItem, QueueUserWorkItem,
SmartThreadPool, SmartThreadPool,
Thread, Thread
} }
/// <summary> /// <summary>
@ -996,7 +996,7 @@ namespace OpenSim.Framework
// controlled in config files. // controlled in config files.
string nativeLibraryPath; string nativeLibraryPath;
if (Util.Is64BitProcess()) if (Environment.Is64BitProcess)
nativeLibraryPath = Path.Combine(Path.Combine(path, "lib64"), libraryName); nativeLibraryPath = Path.Combine(Path.Combine(path, "lib64"), libraryName);
else else
nativeLibraryPath = Path.Combine(Path.Combine(path, "lib32"), libraryName); nativeLibraryPath = Path.Combine(Path.Combine(path, "lib32"), libraryName);
@ -2712,10 +2712,6 @@ namespace OpenSim.Framework
/// Determine whether the current process is 64 bit /// Determine whether the current process is 64 bit
/// </summary> /// </summary>
/// <returns>true if so, false if not</returns> /// <returns>true if so, false if not</returns>
public static bool Is64BitProcess()
{
return IntPtr.Size == 8;
}
#region FireAndForget Threading Pattern #region FireAndForget Threading Pattern
@ -2974,7 +2970,7 @@ namespace OpenSim.Framework
realCallback.Invoke(obj); realCallback.Invoke(obj);
break; break;
case FireAndForgetMethod.QueueUserWorkItem: case FireAndForgetMethod.QueueUserWorkItem:
ThreadPool.QueueUserWorkItem(realCallback, obj); ThreadPool.UnsafeQueueUserWorkItem(realCallback, obj);
break; break;
case FireAndForgetMethod.SmartThreadPool: case FireAndForgetMethod.SmartThreadPool:
if (m_ThreadPool == null) if (m_ThreadPool == null)