log processor arch
parent
5401e323dc
commit
59d3f9fa62
|
@ -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();
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue