diff options
author | Jan Kotas <jkotas@microsoft.com> | 2015-12-22 11:46:17 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-12-23 17:43:21 +0300 |
commit | d1823e83d7335aa99b1cff887543a56c2b17aa78 (patch) | |
tree | 7f2df0ca5774734eb7270497845e0ef5d4d3d0ef /src/System.Private.Threading | |
parent | ca7ce91a101d1e5f796394046b8326af6dc9012e (diff) |
Refactor MEMORY_BASIC_INFORMATION, SYSTEM_INFO
Diffstat (limited to 'src/System.Private.Threading')
-rw-r--r-- | src/System.Private.Threading/src/System.Private.Threading.csproj | 8 | ||||
-rw-r--r-- | src/System.Private.Threading/src/System/Threading/Tasks/Task.cs | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/System.Private.Threading/src/System.Private.Threading.csproj b/src/System.Private.Threading/src/System.Private.Threading.csproj index 0f888ff55..8c7437bb9 100644 --- a/src/System.Private.Threading/src/System.Private.Threading.csproj +++ b/src/System.Private.Threading/src/System.Private.Threading.csproj @@ -94,11 +94,11 @@ <Compile Include="..\..\Common\src\Interop\Windows\Interop.Libraries.cs"> <Link>Common\Interop\Interop.Libraries.cs</Link> </Compile> - <Compile Include="..\..\Common\src\Interop\Windows\Interop._SYSTEM_INFO.cs"> - <Link>Common\Interop\Interop._SYSTEM_INFO.cs</Link> + <Compile Include="..\..\Common\src\Interop\Windows\mincore\Interop.SYSTEM_INFO.cs"> + <Link>Common\Interop\Interop.SYSTEM_INFO.cs</Link> </Compile> - <Compile Include="..\..\Common\src\Interop\Windows\Interop._MEMORY_BASIC_INFORMATION.cs"> - <Link>Common\Interop\Interop._MEMORY_BASIC_INFORMATION.cs</Link> + <Compile Include="..\..\Common\src\Interop\Windows\mincore\Interop.MEMORY_BASIC_INFORMATION.cs"> + <Link>Common\Interop\Interop.MEMORY_BASIC_INFORMATION.cs</Link> </Compile> <Compile Include="..\..\Common\src\Interop\Windows\mincore\Interop.GetNativeSystemInfo.cs"> <Link>Common\Interop\Interop.GetNativeSystemInfo.cs</Link> diff --git a/src/System.Private.Threading/src/System/Threading/Tasks/Task.cs b/src/System.Private.Threading/src/System/Threading/Tasks/Task.cs index 88dfb4ed8..d4d582e30 100644 --- a/src/System.Private.Threading/src/System/Threading/Tasks/Task.cs +++ b/src/System.Private.Threading/src/System/Threading/Tasks/Task.cs @@ -6362,13 +6362,13 @@ namespace System.Threading.Tasks { // If not we need to query it from GetSystemInfo() // Note that this happens only once for the process lifetime - Interop._SYSTEM_INFO sysInfo; + Interop.mincore.SYSTEM_INFO sysInfo; Interop.mincore.GetNativeSystemInfo(out sysInfo); s_pageSize = pageSize = (int)sysInfo.dwPageSize; } - Interop._MEMORY_BASIC_INFORMATION stackInfo = new Interop._MEMORY_BASIC_INFORMATION(); + Interop.mincore.MEMORY_BASIC_INFORMATION stackInfo = new Interop.mincore.MEMORY_BASIC_INFORMATION(); // We subtract one page for our request. VirtualQuery rounds UP to the next page. // Unfortunately, the stack grows down. If we're on the first page (last page in the @@ -6383,7 +6383,7 @@ namespace System.Threading.Tasks return true; // Actual stack probe. P/Invoke to query for the current stack allocation information. - Interop.mincore.VirtualQuery((IntPtr)currentAddr, out stackInfo, (UIntPtr)(sizeof(Interop._MEMORY_BASIC_INFORMATION))); + Interop.mincore.VirtualQuery((IntPtr)currentAddr, out stackInfo, (UIntPtr)(sizeof(Interop.mincore.MEMORY_BASIC_INFORMATION))); // If the current address minus the base (remember: the stack grows downward in the // address space) is greater than the number of bytes requested plus the reserved |