Imported Upstream version 5.2.0.175

Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-06-07 13:16:24 +00:00
parent 4bdbaf4a88
commit 966bba02bb
8776 changed files with 346420 additions and 149650 deletions

View File

@@ -0,0 +1,14 @@
using System;
namespace System.Runtime.InteropServices
{
internal static class AddrofIntrinsics
{
// This method is implemented elsewhere in the toolchain
internal static IntPtr AddrOf<T>(T ftn)
{
return Marshal.GetFunctionPointerForDelegate<T>(ftn);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +1,20 @@
namespace System.Diagnostics.Private
{
static class Debug
static partial class Debug
{
public static void Assert (bool condition)
{
}
internal static IDebugLogger s_logger = new MonoDebugLogger();
public static void Assert (bool condition, string message)
internal sealed class MonoDebugLogger : IDebugLogger
{
public void ShowAssertDialog(string stackTrace, string message, string detailMessage)
{
// FIXME should we g_error in this case?
}
public void WriteCore(string message)
{
// FIXME should we g_debug in this case?
}
}
}
}

View File

@@ -0,0 +1,21 @@
using System;
internal static partial class Interop
{
internal static IntPtr MemAlloc(UIntPtr sizeInBytes)
{
if (Environment.IsRunningOnWindows)
return Windows_MemAlloc(sizeInBytes);
else
return Unix_MemAlloc(sizeInBytes);
}
internal static void MemFree(IntPtr allocatedMemory)
{
if (Environment.IsRunningOnWindows)
Windows_MemFree(allocatedMemory);
else
Unix_MemFree(allocatedMemory);
}
}

View File

@@ -0,0 +1,14 @@
using System;
internal partial class Interop
{
internal partial class mincore
{
static mincore()
{
if (!Environment.IsRunningOnWindows)
throw new PlatformNotSupportedException();
}
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Diagnostics;
namespace Internal.Runtime.CompilerServices
{
[Conditional ("ALWAYSREMOVED")]
[AttributeUsage(AttributeTargets.All)]
class RelocatedTypeAttribute : Attribute
{
public RelocatedTypeAttribute(String originalAssemblySimpleName)
{
}
}
}

View File

@@ -0,0 +1,9 @@
namespace Internal.Runtime.Augments
{
class RuntimeThread
{
public static void InitializeThreadPoolThread ()
{
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,65 @@
#if !MULTIPLEX_OS
namespace System.Threading
{
public sealed class ThreadPoolBoundHandle : IDisposable
{
internal ThreadPoolBoundHandle ()
{
}
public System.Runtime.InteropServices.SafeHandle Handle {
get {
throw new PlatformNotSupportedException ();
}
}
[System.CLSCompliantAttribute (false)]
public unsafe System.Threading.NativeOverlapped* AllocateNativeOverlapped (System.Threading.IOCompletionCallback callback, object state, object pinData)
{
throw new PlatformNotSupportedException ();
}
[System.CLSCompliantAttribute (false)]
public unsafe System.Threading.NativeOverlapped* AllocateNativeOverlapped (System.Threading.PreAllocatedOverlapped preAllocated)
{
throw new PlatformNotSupportedException ();
}
public static System.Threading.ThreadPoolBoundHandle BindHandle (System.Runtime.InteropServices.SafeHandle handle)
{
throw new PlatformNotSupportedException ();
}
public void Dispose ()
{
}
[System.CLSCompliantAttribute (false)]
public unsafe void FreeNativeOverlapped (System.Threading.NativeOverlapped* overlapped)
{
throw new PlatformNotSupportedException ();
}
[System.CLSCompliantAttribute (false)]
public static unsafe object GetNativeOverlappedState (System.Threading.NativeOverlapped* overlapped)
{
throw new PlatformNotSupportedException ();
}
}
public sealed partial class PreAllocatedOverlapped : IDisposable
{
[System.CLSCompliantAttribute (false)]
public PreAllocatedOverlapped (System.Threading.IOCompletionCallback callback, object state, object pinData)
{
throw new PlatformNotSupportedException ();
}
public void Dispose ()
{
}
}
}
#endif