diff options
Diffstat (limited to 'Source/WTF/wtf/StackBounds.cpp')
-rw-r--r-- | Source/WTF/wtf/StackBounds.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Source/WTF/wtf/StackBounds.cpp b/Source/WTF/wtf/StackBounds.cpp index 4cb031cb2..f308ac1d6 100644 --- a/Source/WTF/wtf/StackBounds.cpp +++ b/Source/WTF/wtf/StackBounds.cpp @@ -119,21 +119,11 @@ void StackBounds::initialize() void StackBounds::initialize() { - MEMORY_BASIC_INFORMATION stackOrigin; + MEMORY_BASIC_INFORMATION stackOrigin = { 0 }; VirtualQuery(&stackOrigin, &stackOrigin, sizeof(stackOrigin)); // stackOrigin.AllocationBase points to the reserved stack memory base address. m_origin = static_cast<char*>(stackOrigin.BaseAddress) + stackOrigin.RegionSize; -#if OS(WINCE) - SYSTEM_INFO systemInfo; - GetSystemInfo(&systemInfo); - DWORD pageSize = systemInfo.dwPageSize; - - MEMORY_BASIC_INFORMATION stackMemory; - VirtualQuery(m_origin, &stackMemory, sizeof(stackMemory)); - - m_bound = static_cast<char*>(m_origin) - stackMemory.RegionSize + pageSize; -#else // The stack on Windows consists out of three parts (uncommitted memory, a guard page and present // committed memory). The 3 regions have different BaseAddresses but all have the same AllocationBase // since they are all from the same VirtualAlloc. The 3 regions are laid out in memory (from high to @@ -173,7 +163,6 @@ void StackBounds::initialize() ASSERT(endOfStack == computedEnd); #endif // NDEBUG m_bound = static_cast<char*>(endOfStack) + guardPage.RegionSize; -#endif // OS(WINCE) } #else |