Imported Upstream version 5.18.0.142

Former-commit-id: 7467d4b717762eeaf652d77f1486dd11ffb1ff1f
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-10-09 08:20:59 +00:00
parent e52655b4dc
commit 0abdbe5a7d
1547 changed files with 93792 additions and 47893 deletions

View File

@@ -4,9 +4,6 @@
using System;
using System.Diagnostics;
#if MONO
using System.Diagnostics.Private;
#endif
using System.Runtime.InteropServices;
namespace System.IO

View File

@@ -3,9 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.Diagnostics;
#if MONO
using System.Diagnostics.Private;
#endif
namespace System.Threading
{

View File

@@ -3,9 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.Diagnostics;
#if MONO
using System.Diagnostics.Private;
#endif
namespace System.Collections.Generic
{

View File

@@ -1 +1 @@
c14603d45ef7ad7f0c541d64df6fd49fc47b9879
05afe6b7e296d261b03eff87b6fb61e1db537d32

View File

@@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.Diagnostics;
using System.Diagnostics.Private;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

View File

@@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.Diagnostics;
using System.Diagnostics.Private;
using System.Runtime;
using System.Globalization;
@@ -19,10 +18,10 @@ namespace System
Debug.Assert(precision > 0 && precision < 40);
number.precision = precision;
if (DoubleHelper.Exponent(value) == 0x7ff)
if (!Double.IsFinite(value))
{
number.scale = DoubleHelper.Mantissa(value) != 0 ? ScaleNAN : ScaleINF;
number.sign = DoubleHelper.Sign(value);
number.scale = Double.IsNaN(value) ? ScaleNAN : ScaleINF;
number.sign = Double.IsNegative(value);
number.digits[0] = '\0';
return;
}
@@ -162,4 +161,4 @@ namespace System
}
}
}
}
}

View File

@@ -12,10 +12,10 @@ namespace System
private static unsafe void DoubleToNumber(double value, int precision, ref NumberBuffer number)
{
number.precision = precision;
if (DoubleHelper.Exponent(value) == 0x7ff)
if (!Double.IsFinite(value))
{
number.scale = DoubleHelper.Mantissa(value) != 0 ? ScaleNAN : ScaleINF;
number.sign = DoubleHelper.Sign(value);
number.scale = Double.IsNaN(value) ? ScaleNAN : ScaleINF;
number.sign = Double.IsNegative(value);
number.digits[0] = '\0';
}
else
@@ -40,4 +40,3 @@ namespace System
}
}

View File

@@ -39,7 +39,6 @@
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
using System.Diagnostics;
using System.Diagnostics.Private;
using System.Threading;
using System.Threading.Tasks;

View File

@@ -12,7 +12,7 @@
using System.Buffers;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.Private;
using System.Diagnostics;
using System.Globalization;
using System.Runtime;
using System.Runtime.CompilerServices;

View File

@@ -17,7 +17,6 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Private;
using System.Diagnostics.CodeAnalysis;
namespace System.Threading.Tasks

View File

@@ -13,7 +13,6 @@
using System.Runtime.CompilerServices;
using System.Diagnostics;
using System.Diagnostics.Private;
// Disable the "reference to volatile field not treated as volatile" error.

View File

@@ -1 +1 @@
a536d51d1c315ded8a565fd23c7697bb35dc6f1c
b27b1858fea5bbb83b6ef0a139929bdcebcba74d

View File

@@ -26,7 +26,6 @@ using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Private;
using System.Runtime.InteropServices;
namespace System.Threading.Tasks

View File

@@ -1 +1 @@
48443f12612316da12c20882839cea4e7be89e74
185449d187c8932c82d449d467170732f3d171d7

View File

@@ -11,7 +11,7 @@
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
using System.Diagnostics.Private;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using Internal.Runtime.Augments;

View File

@@ -18,7 +18,6 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Diagnostics.Private;
using System.Runtime.ExceptionServices;
namespace System.Threading.Tasks

View File

@@ -1 +1 @@
c80953c82c13044ea68c339395b3895f2eabc64c
627a760c70dad24b763acc3e566b6cf1c18ae6e7

View File

@@ -12,7 +12,6 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Private;
using System.Runtime.CompilerServices;
namespace System.Threading.Tasks

View File

@@ -3,9 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.Diagnostics;
#if MONO
using System.Diagnostics.Private;
#endif
using System.Runtime.InteropServices;
namespace System.Threading

View File

@@ -4,9 +4,6 @@
using System.Collections.Generic;
using System.Diagnostics;
#if MONO
using System.Diagnostics.Private;
#endif
using System.Runtime.InteropServices;
namespace System.Threading