Move MemoryFailPoint to shared CoreLib partition (#22104)
authorFilip Navara <filip.navara@gmail.com>
Tue, 22 Jan 2019 12:16:45 +0000 (13:16 +0100)
committerJan Kotas <jkotas@microsoft.com>
Tue, 22 Jan 2019 12:16:45 +0000 (04:16 -0800)
commit635a609eba8db8082a4e1245ce1291f9bbe9835c
treebdd9ab76b9528377ee506e22e2684306f84c63d1
parent61ff7397e849273bafc8b1e46ec88ddd905ce187
Move MemoryFailPoint to shared CoreLib partition (#22104)

* Move MemoryFailPoint to shared CoreLib partition.

* Split MemoryFailPoint into Unix and Windows versions.

* Replace MemoryFailPoint.GetMemorySettings FCall with GC.GetSegmentSize to make sharing with CoreRT easier.
20 files changed:
src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.GlobalMemoryStatusEx.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.MEMORYSTATUSEX.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.MEMORY_BASIC_INFORMATION.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualAlloc.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualFree.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualQuery.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
src/System.Private.CoreLib/shared/System/Runtime/MemoryFailPoint.Unix.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/System/Runtime/MemoryFailPoint.Windows.cs [new file with mode: 0644]
src/System.Private.CoreLib/shared/System/Runtime/MemoryFailPoint.cs [moved from src/System.Private.CoreLib/src/System/Runtime/MemoryFailPoint.cs with 79% similarity]
src/System.Private.CoreLib/src/Microsoft/Win32/Win32Native.cs
src/System.Private.CoreLib/src/System/GC.cs
src/vm/CMakeLists.txt
src/vm/commemoryfailpoint.cpp [deleted file]
src/vm/commemoryfailpoint.h [deleted file]
src/vm/comutilnative.cpp
src/vm/comutilnative.h
src/vm/ecalllist.h
src/vm/mscorlib.cpp