diff options
Diffstat (limited to 'src/mscorlib/src/System/SharedStatics.cs')
-rw-r--r-- | src/mscorlib/src/System/SharedStatics.cs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/mscorlib/src/System/SharedStatics.cs b/src/mscorlib/src/System/SharedStatics.cs index cbc5c354a1..d9364335f5 100644 --- a/src/mscorlib/src/System/SharedStatics.cs +++ b/src/mscorlib/src/System/SharedStatics.cs @@ -16,7 +16,6 @@ namespace System using System.Threading; using System.Runtime.Remoting; using System.Security; - using System.Security.Util; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using System.Diagnostics; @@ -36,40 +35,9 @@ namespace System } private volatile String _Remoting_Identity_IDGuid; - public static String Remoting_Identity_IDGuid - { - get - { - if (_sharedStatics._Remoting_Identity_IDGuid == null) - { - bool tookLock = false; - RuntimeHelpers.PrepareConstrainedRegions(); - try { - Monitor.Enter(_sharedStatics, ref tookLock); - - if (_sharedStatics._Remoting_Identity_IDGuid == null) - { - _sharedStatics._Remoting_Identity_IDGuid = Guid.NewGuid().ToString().Replace('-', '_'); - } - } - finally { - if (tookLock) - Monitor.Exit(_sharedStatics); - } - } - - Debug.Assert(_sharedStatics._Remoting_Identity_IDGuid != null, - "_sharedStatics._Remoting_Identity_IDGuid != null"); - return _sharedStatics._Remoting_Identity_IDGuid; - } - } // Note this may not need to be process-wide. private int _Remoting_Identity_IDSeqNum; - internal static int Remoting_Identity_GetNextSeqNum() - { - return Interlocked.Increment(ref _sharedStatics._Remoting_Identity_IDSeqNum); - } // This is the total amount of memory currently "reserved" via @@ -77,7 +45,6 @@ namespace System // Stored as a long because we need to use Interlocked.Add. private long _memFailPointReservedMemory; - [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] internal static long AddMemoryFailPointReservation(long size) { // Size can legitimately be negative - see Dispose. |