Imported Upstream version 5.10.0.69

Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-01-29 19:03:06 +00:00
parent d8f8abd549
commit e2950ec768
6283 changed files with 453847 additions and 91879 deletions

View File

@@ -93,8 +93,10 @@ ifdef MONO_FEATURE_APPLE_X509
LIB_MCS_FLAGS += -d:MONO_FEATURE_APPLE_X509
endif
COREFX_FLAGS := -d:FEATURE_PORTABLE_SPAN
WARNING_ABOUT_DISABLED_WARNING=1635
LOCAL_MCS_FLAGS = -unsafe -nostdlib -nowarn:612,618,3001,3002,3003,$(WARNING_ABOUT_DISABLED_WARNING) -d:INSIDE_CORLIB,MONO_CULTURE_DATA -d:LIBC $(REFERENCE_SOURCES_FLAGS)
LOCAL_MCS_FLAGS = -unsafe -nostdlib -nowarn:612,618,3001,3002,3003,$(WARNING_ABOUT_DISABLED_WARNING) -d:INSIDE_CORLIB,MONO_CULTURE_DATA -d:LIBC $(REFERENCE_SOURCES_FLAGS) $(COREFX_FLAGS)
DEFAULT_REFERENCES =
TEST_LIB_REFS = System.Core System

View File

@@ -41,12 +41,25 @@ namespace System
{
partial class String
{
[MethodImplAttribute (MethodImplOptions.InternalCall)]
public extern String (ReadOnlySpan<char> value);
public int Length {
get {
return m_stringLength;
}
}
public unsafe static implicit operator ReadOnlySpan<char> (String value)
{
if (value == null)
return default;
fixed (void* start = &value.m_firstChar)
return new ReadOnlySpan<char> (start, value.Length);
}
internal static unsafe int CompareOrdinalUnchecked (String strA, int indexA, int lenA, String strB, int indexB, int lenB)
{
if (strA == null) {
@@ -743,5 +756,17 @@ namespace System
// GetString () is called even when length == 0
return enc.GetString (bytes);
}
unsafe String CreateString (ReadOnlySpan<char> value)
{
if (value.Length == 0)
return Empty;
String result = FastAllocateString (value.Length);
fixed (char *dest = result, ptr = &value.DangerousGetPinnableReference ())
wstrcpy (dest, ptr, value.Length);
return result;
}
}
}

View File

@@ -65,7 +65,7 @@ namespace System
try
{
IntroSort(left, length + left - 1, 2 * IntrospectiveSortUtilities.FloorLog2(keys.Length));
IntroSort(left, length + left - 1, 2 * IntrospectiveSortUtilities.FloorLog2PlusOne(keys.Length));
}
catch (IndexOutOfRangeException)
{
@@ -271,7 +271,7 @@ namespace System
try
{
IntroSort(left, length + left - 1, 2 * IntrospectiveSortUtilities.FloorLog2(keys.Length));
IntroSort(left, length + left - 1, 2 * IntrospectiveSortUtilities.FloorLog2PlusOne(keys.Length));
}
catch (IndexOutOfRangeException)
{

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
9ac00eca4c5e8b4a2e61d5826df2437d0ceb119b

View File

@@ -1,9 +1,14 @@
namespace Internal.Runtime.Augments
{
class RuntimeThread
{
public static void InitializeThreadPoolThread ()
{
}
}
class RuntimeThread
{
public static RuntimeThread InitializeThreadPoolThread ()
{
return default;
}
public void ResetThreadPoolThread ()
{
}
}
}

View File

@@ -10,17 +10,20 @@ namespace System.IO
throw new NotImplementedException ();
}
public virtual void Write(ReadOnlySpan<byte> source)
public virtual void Write (ReadOnlySpan<byte> source)
{
throw new NotImplementedException ();
}
public virtual ValueTask<int> ReadAsync(Memory<byte> destination, CancellationToken cancellationToken = default(CancellationToken))
{
if (destination.TryGetArray (out ArraySegment<byte> array))
return new ValueTask<int> (ReadAsync (array.Array, array.Offset, array.Count, cancellationToken));
throw new NotImplementedException ();
}
public virtual Task WriteAsync(ReadOnlyMemory<byte> source, CancellationToken cancellationToken = default(CancellationToken))
public virtual Task WriteAsync (ReadOnlyMemory<byte> source, CancellationToken cancellationToken = default(CancellationToken))
{
throw new NotImplementedException ();
}

View File

@@ -1636,37 +1636,45 @@ corert/ThreadPoolBoundHandle.cs
../../../external/corert/src/Runtime.Base/src/System/Runtime/InteropServices/NativeCallableAttribute.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/TupleExtensions.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/ValueTuple.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/Collections/DictionaryEntry.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/Collections/Generic/KeyValuePair.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/Diagnostics/Debug.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/IsReadOnlyAttribute.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/IsByRefLikeAttribute.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/ITuple.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/RuntimeFeature.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TupleElementNamesAttribute.cs
../../../external/corert/src/System.Private.CoreLib/shared/System/Threading/DeferredDisposableLifetime.cs
../../../external/corert/src/System.Private.CoreLib/src/System/Array.cs
../../../external/corert/src/System.Private.CoreLib/src/System/Tuple.cs
../../../external/corert/src/System.Private.CoreLib/src/System/Collections/LowLevelComparer.cs
../../../external/corert/src/System.Private.CoreLib/src/System/Collections/ObjectEqualityComparer.cs
../../../external/corert/src/System.Private.CoreLib/src/System/Collections/Generic/ArraySortHelper.cs
../../../external/corert/src/System.Private.CoreLib/src/System/Collections/Generic/IDictionaryDebugView.cs
../../../external/corert/src/System.Private.CoreLib/src/System/Collections/Generic/Dictionary.cs
../../../external/corert/src/System.Private.CoreLib/src/System/Collections/Generic/NonRandomizedStringEqualityComparer.cs
../../../external/corert/src/System.Private.CoreLib/src/System/Threading/ThreadPoolCallbackWrapper.cs
corefx/SR.cs
../../../external/corefx/src/Common/src/CoreLib/System/Memory.cs
../../../external/corefx/src/Common/src/CoreLib/System/MemoryDebugView.cs
../../../external/corefx/src/Common/src/CoreLib/System/ReadOnlyMemory.cs
../../../external/corefx/src/Common/src/CoreLib/System/Tuple.cs
../../../external/corefx/src/Common/src/CoreLib/System/TupleExtensions.cs
../../../external/corefx/src/Common/src/CoreLib/System/ValueTuple.cs
../../../external/corefx/src/Common/src/CoreLib/System/Buffers/IRetainable.cs
../../../external/corefx/src/Common/src/CoreLib/System/Buffers/MemoryHandle.cs
../../../external/corefx/src/Common/src/CoreLib/System/Buffers/OwnedMemory.cs
../../../external/corefx/src/Common/src/CoreLib/System/Collections/DictionaryEntry.cs
../../../external/corefx/src/Common/src/CoreLib/System/Collections/Generic/Dictionary.cs
../../../external/corefx/src/Common/src/CoreLib/System/Collections/Generic/IDictionaryDebugView.cs
../../../external/corefx/src/Common/src/CoreLib/System/Collections/Generic/KeyValuePair.cs
../../../external/corefx/src/Common/src/CoreLib/System/Runtime/CompilerServices/IntrinsicAttribute.cs
../../../external/corefx/src/Common/src/CoreLib/System/Runtime/CompilerServices/IsReadOnlyAttribute.cs
../../../external/corefx/src/Common/src/CoreLib/System/Runtime/CompilerServices/IsByRefLikeAttribute.cs
../../../external/corefx/src/Common/src/CoreLib/System/Runtime/CompilerServices/ITuple.cs
../../../external/corefx/src/Common/src/CoreLib/System/Runtime/CompilerServices/RuntimeFeature.cs
../../../external/corefx/src/Common/src/CoreLib/System/Runtime/CompilerServices/TupleElementNamesAttribute.cs
../../../external/corefx/src/Common/src/CoreLib/System/Runtime/InteropServices/MemoryMarshal.cs
../../../external/corefx/src/Common/src/System/Collections/Generic/ReferenceEqualityComparer.cs
../../../external/corefx/src/System.Collections/src/System/Collections/Generic/CollectionExtensions.cs
@@ -1680,16 +1688,14 @@ corefx/SR.cs
../../../external/corefx/src/System.Collections.Concurrent/src/System/Collections/Concurrent/Partitioner.cs
../../../external/corefx/src/System.Collections.Concurrent/src/System/Collections/Concurrent/PartitionerStatic.cs
../../../external/corefx/src/System.Memory/src/System/Memory.cs
../../../external/corefx/src/System.Memory/src/System/MemoryDebugView.cs
../../../external/corefx/src/System.Memory/src/System/Pinnable.cs
../../../external/corefx/src/System.Memory/src/System/ReadOnlyMemory.cs
../../../external/corefx/src/System.Memory/src/System/ReadOnlySpan.cs
../../../external/corefx/src/System.Memory/src/System/Span.cs
../../../external/corefx/src/System.Memory/src/System/SpanDebugView.cs
../../../external/corefx/src/System.Memory/src/System/SpanExtensions.cs
../../../external/corefx/src/System.Memory/src/System/SpanExtensions.Portable.cs
../../../external/corefx/src/System.Memory/src/System/MemoryExtensions.cs
../../../external/corefx/src/System.Memory/src/System/MemoryExtensions.Portable.cs
../../../external/corefx/src/System.Memory/src/System/SpanHelpers.cs
../../../external/corefx/src/System.Memory/src/System/SpanHelpers.BinarySearch.cs
../../../external/corefx/src/System.Memory/src/System/SpanHelpers.Clear.cs
../../../external/corefx/src/System.Memory/src/System/SpanHelpers.byte.cs
../../../external/corefx/src/System.Memory/src/System/SpanHelpers.T.cs