Imported Upstream version 5.20.0.184

Former-commit-id: 2513cc2d3116bd4f324e8da1afc305445d2ae665
This commit is contained in:
Xamarin Public Jenkins (auto-signing) 2019-02-05 08:22:04 +00:00
parent 0510252385
commit 97f8185566
49 changed files with 76 additions and 44 deletions

View File

@ -1 +1 @@
7ea109857e824ef015de7d2a2c808d994f6356b7
b796426724e7961d0e254ca3f7d9ac4049499d5d

View File

@ -1 +1 @@
38a8192e8bea043bb0bc52e78aa307fb8fade1b7
edc8bec4f4b607c3a97b3df060a00581a5ec2e30

View File

@ -89,8 +89,12 @@ namespace System.Globalization
{
throw new ArgumentOutOfRangeException(nameof(year), SR.ArgumentOutOfRange_Year);
}
int P(int y) => (y + (y / 4) - (y / 100) + (y / 400)) % 7;
#if __MonoCS__ // mcs doesn't support local functions
Func<int, int> P = y =>
#else
int P(int y) =>
#endif
(y + (y / 4) - (y / 100) + (y / 400)) % 7;
if (P(year) == 4 || P(year - 1) == 3)
{

View File

@ -25,6 +25,9 @@ using System.Threading.Tasks;
namespace System.IO
{
#if MONO
[Serializable]
#endif
public abstract partial class Stream : MarshalByRefObject, IDisposable
{
public static readonly Stream Null = new NullStream();
@ -35,8 +38,14 @@ namespace System.IO
private const int DefaultCopyBufferSize = 81920;
// To implement Async IO operations on streams that don't support async IO
#if MONO
[NonSerialized]
#endif
private ReadWriteTask _activeReadWriteTask;
#if MONO
[NonSerialized]
#endif
private SemaphoreSlim _asyncActiveSemaphore;
internal SemaphoreSlim EnsureAsyncActiveSemaphoreInitialized()
@ -372,8 +381,9 @@ namespace System.IO
else
{
byte[] sharedBuffer = ArrayPool<byte>.Shared.Rent(buffer.Length);
return FinishReadAsync(ReadAsync(sharedBuffer, 0, buffer.Length, cancellationToken), sharedBuffer, buffer);
#if !__MonoCS__
return FinishReadAsync(ReadAsync(sharedBuffer, 0, buffer.Length, cancellationToken), sharedBuffer, buffer);
async ValueTask<int> FinishReadAsync(Task<int> readTask, byte[] localBuffer, Memory<byte> localDestination)
{
try
@ -387,9 +397,27 @@ namespace System.IO
ArrayPool<byte>.Shared.Return(localBuffer);
}
}
#else
return new ValueTask<int> (FinishReadAsync(ReadAsync(sharedBuffer, 0, buffer.Length, cancellationToken), sharedBuffer, buffer));
#endif
}
}
#if __MonoCS__
internal async Task<int> FinishReadAsync(Task<int> readTask, byte[] localBuffer, Memory<byte> localDestination)
{
try
{
int result = await readTask.ConfigureAwait(false);
new Span<byte>(localBuffer, 0, result).CopyTo(localDestination.Span);
return result;
}
finally
{
ArrayPool<byte>.Shared.Return(localBuffer);
}
}
#endif
private Task<int> BeginEndReadAsync(byte[] buffer, int offset, int count)
{
if (!HasOverriddenBeginEndRead())

View File

@ -33,7 +33,7 @@ namespace System
number.sign = double.IsNegative(value);
*dst = '\0';
if (value == 0.0)
if (BitConverter.DoubleToInt64Bits (value) == 0)
{
for (int j = 0; j < precision; j++)
{

View File

@ -34,7 +34,7 @@ static class Consts
// Use these assembly version constants to make code more maintainable.
//
public const string MonoVersion = "5.20.0.180";
public const string MonoVersion = "5.20.0.184";
public const string MonoCompany = "Mono development team";
public const string MonoProduct = "Mono Common Language Infrastructure";
public const string MonoCopyright = "(c) Various Mono authors";

View File

@ -1 +1 @@
4f4391e937dcc54a4359d358a1c775bdef279ec8
865e5662e29da2a52bb18b2500ddc7bd5f45d50f

View File

@ -1 +1 @@
0a6705fab6968dae1904e86f6543c5f877d5a4a8
6a865dece6532c6139ed10e8bfc0b21b1525bed6

View File

@ -1 +1 @@
a03e85c37ce0d3d08fae6dea915d62fb4c71b5aa
5a096ae0d88faf3f76e9e3a8950467a4a409c735

View File

@ -1 +1 @@
32ddda617ddf4b5f8efd69a8440738ca362f1599
36de3a387d536149b60018901ae19b8a27886712

View File

@ -1 +1 @@
5b76c9eff6ad5174965dbaae00f687535380c3a1
b11e33b00feef3ef153728eefb46a0b6e937b126

View File

@ -1 +1 @@
1d3ebea05d4f45721fc50683072d60048f65e461
1caba0de2880f7ce16a6137889542db4278b682d

View File

@ -1 +1 @@
783746cb55609a3dee958691967fb240f9fe1146
58981cf12840e74fa15ccaae8ebaacf740707edf

View File

@ -1 +1 @@
4f4391e937dcc54a4359d358a1c775bdef279ec8
865e5662e29da2a52bb18b2500ddc7bd5f45d50f

View File

@ -1 +1 @@
0a6705fab6968dae1904e86f6543c5f877d5a4a8
6a865dece6532c6139ed10e8bfc0b21b1525bed6

View File

@ -1 +1 @@
a03e85c37ce0d3d08fae6dea915d62fb4c71b5aa
5a096ae0d88faf3f76e9e3a8950467a4a409c735

View File

@ -1 +1 @@
32ddda617ddf4b5f8efd69a8440738ca362f1599
36de3a387d536149b60018901ae19b8a27886712

View File

@ -1 +1 @@
5b76c9eff6ad5174965dbaae00f687535380c3a1
b11e33b00feef3ef153728eefb46a0b6e937b126

View File

@ -1 +1 @@
1d3ebea05d4f45721fc50683072d60048f65e461
1caba0de2880f7ce16a6137889542db4278b682d

View File

@ -1 +1 @@
783746cb55609a3dee958691967fb240f9fe1146
58981cf12840e74fa15ccaae8ebaacf740707edf

View File

@ -1 +1 @@
4f4391e937dcc54a4359d358a1c775bdef279ec8
865e5662e29da2a52bb18b2500ddc7bd5f45d50f

View File

@ -1 +1 @@
0a6705fab6968dae1904e86f6543c5f877d5a4a8
6a865dece6532c6139ed10e8bfc0b21b1525bed6

View File

@ -1 +1 @@
a03e85c37ce0d3d08fae6dea915d62fb4c71b5aa
5a096ae0d88faf3f76e9e3a8950467a4a409c735

View File

@ -1 +1 @@
32ddda617ddf4b5f8efd69a8440738ca362f1599
36de3a387d536149b60018901ae19b8a27886712

View File

@ -1 +1 @@
5b76c9eff6ad5174965dbaae00f687535380c3a1
b11e33b00feef3ef153728eefb46a0b6e937b126

View File

@ -1 +1 @@
1d3ebea05d4f45721fc50683072d60048f65e461
1caba0de2880f7ce16a6137889542db4278b682d

View File

@ -1 +1 @@
783746cb55609a3dee958691967fb240f9fe1146
58981cf12840e74fa15ccaae8ebaacf740707edf

View File

@ -1 +1 @@
4f4391e937dcc54a4359d358a1c775bdef279ec8
865e5662e29da2a52bb18b2500ddc7bd5f45d50f

View File

@ -1 +1 @@
0a6705fab6968dae1904e86f6543c5f877d5a4a8
6a865dece6532c6139ed10e8bfc0b21b1525bed6

View File

@ -1 +1 @@
a03e85c37ce0d3d08fae6dea915d62fb4c71b5aa
5a096ae0d88faf3f76e9e3a8950467a4a409c735

View File

@ -1 +1 @@
32ddda617ddf4b5f8efd69a8440738ca362f1599
36de3a387d536149b60018901ae19b8a27886712

View File

@ -1 +1 @@
5b76c9eff6ad5174965dbaae00f687535380c3a1
b11e33b00feef3ef153728eefb46a0b6e937b126

View File

@ -1 +1 @@
1d3ebea05d4f45721fc50683072d60048f65e461
1caba0de2880f7ce16a6137889542db4278b682d

View File

@ -1 +1 @@
783746cb55609a3dee958691967fb240f9fe1146
58981cf12840e74fa15ccaae8ebaacf740707edf

View File

@ -1 +1 @@
03945b843955a3347bf14841c37bf3252be811b7
215a350468f0e067c6d369527761e3157bf8bad4

View File

@ -1 +1 @@
#define FULL_VERSION "explicit/8788708"
#define FULL_VERSION "explicit/9434d41"

Binary file not shown.

View File

@ -1 +1 @@
73c024cfb2dccfe08f9b4d2038d16bacd0363749
6a72a37c86982589a16ae05a57b620fe354537b9

Binary file not shown.

View File

@ -1 +1 @@
5e157b7f40154e83bbc6a001a22c6d09f86f4004
da7b7b4d0daf13c71647dcfaeade314af8fbb3f3

Binary file not shown.

View File

@ -1 +1 @@
975e5a6f1b8467bca4ba7296b481e49b63b5d661
1a839ae8748554cfcf5a519f6320d7653a58090f

View File

@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: mono 5.20.0.180\n"
"Project-Id-Version: mono 5.20.0.184\n"
"Report-Msgid-Bugs-To: http://www.mono-project.com/Bugs\n"
"POT-Creation-Date: 2019-02-04 19:35+0000\n"
"POT-Creation-Date: 2019-02-05 08:06+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

Binary file not shown.

View File

@ -1 +1 @@
4fa44b03007589288279cefa50910e57f96b7655
90f41adbbe070f8d07c56c8d970c6b775694b150