Imported Upstream version 4.8.0.309

Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-11-10 13:04:39 +00:00
parent ee1447783b
commit 94b2861243
4912 changed files with 390737 additions and 49310 deletions

View File

@@ -155,9 +155,7 @@ namespace System.Threading
lockID = Interlocked.Increment(ref s_nextLockID);
}
#if NET_4_5
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#endif
private static bool IsRWEntryEmpty(ReaderWriterCount rwc)
{
if (rwc.lockID == 0)
@@ -181,9 +179,7 @@ namespace System.Threading
/// entry for this thread, but doesn't want to add one if an existing one
/// could not be found.
/// </summary>
#if NET_4_5
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#endif
private ReaderWriterCount GetThreadRWCount(bool dontAllocate)
{
ReaderWriterCount rwc = t_rwc;
@@ -1117,9 +1113,7 @@ namespace System.Threading
return owners & READER_MASK;
}
#if NET_4_5
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#endif
private void EnterMyLock()
{
if (Interlocked.CompareExchange(ref myLock, 1, 0) != 0)