Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 4416b9b

Browse files
ahsonkhanjkotas
authored andcommitted
Adding Unsafe APIs that are used by System.Memory (#15497)
* Adding Unsafe APIs that are used by System.Memory * Update comment to match S.R.CS.U xml * Changing S.R.CS namespace to Internal.R.CS and making Unsafe class public * Add new InternalCompilerServices namespace to vm
1 parent 9f1dc44 commit 4416b9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+99
-6
lines changed

src/mscorlib/System.Private.CoreLib.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@
121121
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\RuntimeHelpers.cs" />
122122
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\TypeDependencyAttribute.cs" />
123123
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\jithelpers.cs" />
124-
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\Unsafe.cs" />
125124
<Compile Condition="'$(FeatureICastable)' == 'true'" Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\ICastable.cs" />
126125
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\ConditionalWeakTable.cs" />
127126
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\AsyncMethodBuilder.cs" />
@@ -367,6 +366,7 @@
367366
<ItemGroup>
368367
<Compile Include="$(BclSourcesRoot)\Internal\Runtime\Augments\EnvironmentAugments.cs" />
369368
<Compile Include="$(BclSourcesRoot)\Internal\Runtime\Augments\RuntimeThread.cs" />
369+
<Compile Include="$(BclSourcesRoot)\Internal\Runtime\CompilerServices\Unsafe.cs" />
370370
<Compile Include="$(BclSourcesRoot)\Internal\Console.cs" />
371371
<Compile Include="$(BclSourcesRoot)\Internal\Padding.cs" />
372372
</ItemGroup>

src/mscorlib/shared/System/BitConverter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System.Diagnostics;
66
using System.Runtime.CompilerServices;
7+
using Internal.Runtime.CompilerServices;
78

89
namespace System
910
{

src/mscorlib/shared/System/Globalization/CalendarData.Windows.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Runtime.InteropServices;
88
using System.Runtime.CompilerServices;
99
using System.Collections.Generic;
10+
using Internal.Runtime.CompilerServices;
1011

1112
namespace System.Globalization
1213
{

src/mscorlib/shared/System/Guid.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Diagnostics;
66
using System.Runtime.CompilerServices;
77
using System.Runtime.InteropServices;
8+
using Internal.Runtime.CompilerServices;
89

910
namespace System
1011
{

src/mscorlib/shared/System/IO/UnmanagedMemoryAccessor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using System.Diagnostics;
1717
using System.Runtime.CompilerServices;
1818
using System.Runtime.InteropServices;
19+
using Internal.Runtime.CompilerServices;
1920

2021
namespace System.IO
2122
{

src/mscorlib/shared/System/Memory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using System.Runtime.InteropServices;
99
using EditorBrowsableAttribute = System.ComponentModel.EditorBrowsableAttribute;
1010
using EditorBrowsableState = System.ComponentModel.EditorBrowsableState;
11+
using Internal.Runtime.CompilerServices;
1112

1213
namespace System
1314
{

src/mscorlib/shared/System/Number.NumberBuffer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System.Runtime.InteropServices;
66
using System.Runtime.CompilerServices;
7+
using Internal.Runtime.CompilerServices;
78

89
namespace System
910
{

src/mscorlib/shared/System/ReadOnlyMemory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using System.Runtime.InteropServices;
99
using EditorBrowsableAttribute = System.ComponentModel.EditorBrowsableAttribute;
1010
using EditorBrowsableState = System.ComponentModel.EditorBrowsableState;
11+
using Internal.Runtime.CompilerServices;
1112

1213
namespace System
1314
{

src/mscorlib/shared/System/ReadOnlySpan.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Diagnostics;
77
using System.Runtime.CompilerServices;
88
using System.Runtime.Versioning;
9+
using Internal.Runtime.CompilerServices;
910

1011
#pragma warning disable 0809 //warning CS0809: Obsolete member 'Span<T>.Equals(object)' overrides non-obsolete member 'object.Equals(object)'
1112

src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System.Buffers;
66
using System.Runtime.CompilerServices;
7+
using Internal.Runtime.CompilerServices;
78

89
namespace System.Runtime.InteropServices
910
{

0 commit comments

Comments
 (0)