Merge pull request dotnet/corertdotnet/coreclr#3793 from dotnet/nmirror
authorJan Kotas <jkotas@microsoft.com>
Mon, 5 Jun 2017 19:38:24 +0000 (12:38 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 5 Jun 2017 22:42:31 +0000 (15:42 -0700)
Merge nmirror to master

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/be6dc5d8895658cc03204231dc39aff516033683

src/coreclr/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems
src/coreclr/src/mscorlib/shared/System/Diagnostics/Tracing/EventSource.cs [changed mode: 0755->0644]

index b782e6e..f915c88 100644 (file)
     <Compile Include="$(MSBuildThisFileDirectory)System\Progress.cs"/>
     <Compile Include="$(MSBuildThisFileDirectory)System\Random.cs"/>
     <Compile Include="$(MSBuildThisFileDirectory)System\RankException.cs"/>
-    <Compile Include="$(MSBuildThisFileDirectory)System\ReadOnlySpan.cs" Condition="'$(IsProjectNLibrary)' != 'true'"/>
+    <Compile Include="$(MSBuildThisFileDirectory)System\ReadOnlySpan.cs"/>
     <Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AmbiguousMatchException.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)System\Reflection\Assembly.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)System\Reflection\AssemblyAlgorithmIdAttribute.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)System\Security\SuppressUnmanagedCodeSecurityAttribute.cs"/>
     <Compile Include="$(MSBuildThisFileDirectory)System\Security\UnverifiableCodeAttribute.cs"/>
     <Compile Include="$(MSBuildThisFileDirectory)System\Security\VerificationException.cs"/>
-    <Compile Include="$(MSBuildThisFileDirectory)System\Span.cs" Condition="'$(IsProjectNLibrary)' != 'true'"/>
-    <Compile Include="$(MSBuildThisFileDirectory)System\Span.NonGeneric.cs" Condition="'$(IsProjectNLibrary)' != 'true'"/>
+    <Compile Include="$(MSBuildThisFileDirectory)System\Span.cs"/>
+    <Compile Include="$(MSBuildThisFileDirectory)System\Span.NonGeneric.cs"/>
     <Compile Include="$(MSBuildThisFileDirectory)System\StackOverflowException.cs"/>
     <Compile Include="$(MSBuildThisFileDirectory)System\StringComparer.cs"/>
     <Compile Include="$(MSBuildThisFileDirectory)System\StringComparison.cs"/>
old mode 100755 (executable)
new mode 100644 (file)
index 881a929..a30231b
@@ -1134,7 +1134,18 @@ namespace System.Diagnostics.Tracing
             /// Address where the one argument lives (if this points to managed memory you must ensure the
             /// managed object is pinned.
             /// </summary>
+#if PROJECTN // Workaround for DevDiv #445798 
+            public unsafe IntPtr DataPointer
+            {
+                [MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)]
+                get { return (IntPtr)(void*)m_Ptr; }
+                [MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)]
+                set { m_Ptr = unchecked((ulong)(void*)value); }
+            }
+#else
             public unsafe IntPtr DataPointer { get { return (IntPtr)(void*)m_Ptr; } set { m_Ptr = unchecked((ulong)(void*)value); } }
+#endif
+
             /// <summary>
             /// Size of the argument referenced by DataPointer
             /// </summary>