diff options
author | Stephen Toub <stoub@microsoft.com> | 2019-02-13 11:12:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 11:12:10 -0500 |
commit | b8d7a8de00bd13c958d501ada0695af52f6761af (patch) | |
tree | 2b8f8d47b3c55648bd5d04a8d8496b0e5d6388ee /src/System.Private.CoreLib/System.Private.CoreLib.csproj | |
parent | f2937685095844e37c0319d940ca54f3cb414cea (diff) | |
download | coreclr-b8d7a8de00bd13c958d501ada0695af52f6761af.tar.gz coreclr-b8d7a8de00bd13c958d501ada0695af52f6761af.tar.bz2 coreclr-b8d7a8de00bd13c958d501ada0695af52f6761af.zip |
Move SafeHandle to managed code and shared (#22564)
* Move SafeHandle to managed code and shared
This moves the implementation of SafeHandle from native code in the runtime to managed. I used corert's implementation as a base, and reviewed it again against the existing native implementation, making a few tweaks to better match the existing semantics.
This should be a valid move because of the reduced goals around CERs, thread aborts, etc.
However, there are places in the runtime that access SafeHandle functionality via its native counterpart, so I kept the relevant pieces of the native code intact. Most code will continue to use the managed APIs, but the runtime can continue calling into the native versions when needed.
* Address PR feedback
* Address PR feedback
Diffstat (limited to 'src/System.Private.CoreLib/System.Private.CoreLib.csproj')
-rw-r--r-- | src/System.Private.CoreLib/System.Private.CoreLib.csproj | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/System.Private.CoreLib/System.Private.CoreLib.csproj index 7e414048a1..e785601d35 100644 --- a/src/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -247,7 +247,6 @@ <Compile Include="$(BclSourcesRoot)\System\Runtime\InteropServices\GCHandle.CoreCLR.cs" /> <Compile Include="$(BclSourcesRoot)\System\Runtime\InteropServices\Marshal.CoreCLR.cs" /> <Compile Include="$(BclSourcesRoot)\System\Runtime\InteropServices\NativeLibrary.cs" /> - <Compile Include="$(BclSourcesRoot)\System\Runtime\InteropServices\SafeHandle.cs" /> <Compile Include="$(BclSourcesRoot)\System\Runtime\Loader\AssemblyLoadContext.cs" /> <Compile Include="$(BclSourcesRoot)\System\Runtime\Loader\AssemblyDependencyResolver.cs" /> <Compile Include="$(BclSourcesRoot)\System\Runtime\Serialization\FormatterServices.cs" /> |