Merge pull request #7945 from ramarag/MemoryFailPoint
authorRama krishnan Raghupathy <ramarag@microsoft.com>
Thu, 3 Nov 2016 23:02:03 +0000 (16:02 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2016 23:02:03 +0000 (16:02 -0700)
Disabling checks in MemoryFailPoint for Xplat

1  2 
src/mscorlib/src/System/Runtime/MemoryFailPoint.cs

@@@ -157,9 -157,10 +157,10 @@@ namespace System.Runtim
          public MemoryFailPoint(int sizeInMegabytes)
          {
              if (sizeInMegabytes <= 0)
 -                throw new ArgumentOutOfRangeException("sizeInMegabytes", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
 +                throw new ArgumentOutOfRangeException(nameof(sizeInMegabytes), Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum"));
              Contract.EndContractBlock();
  
+ #if !FEATURE_PAL // Remove this when CheckForAvailableMemory is able to provide legitimate estimates
              ulong size = ((ulong)sizeInMegabytes) << 20;
              _reservedMemory = size;