| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "wtf/StackUtil.h" | 5 #include "platform/wtf/StackUtil.h" |
| 6 | 6 |
| 7 #include "wtf/Assertions.h" | 7 #include "platform/wtf/Assertions.h" |
| 8 #include "wtf/Threading.h" | 8 #include "platform/wtf/Threading.h" |
| 9 #include "wtf/WTFThreadData.h" | 9 #include "platform/wtf/WTFThreadData.h" |
| 10 | 10 |
| 11 #if OS(WIN) | 11 #if OS(WIN) |
| 12 #include <stddef.h> | 12 #include <stddef.h> |
| 13 #include <windows.h> | 13 #include <windows.h> |
| 14 #include <winnt.h> | 14 #include <winnt.h> |
| 15 #elif defined(__GLIBC__) | 15 #elif defined(__GLIBC__) |
| 16 extern "C" void* __libc_stack_end; // NOLINT | 16 extern "C" void* __libc_stack_end; // NOLINT |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 namespace WTF { | 19 namespace WTF { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // explains the details. | 188 // explains the details. |
| 189 RELEASE_ASSERT(s_threadStackSize > 4 * 0x1000); | 189 RELEASE_ASSERT(s_threadStackSize > 4 * 0x1000); |
| 190 s_threadStackSize -= 4 * 0x1000; | 190 s_threadStackSize -= 4 * 0x1000; |
| 191 return s_threadStackSize; | 191 return s_threadStackSize; |
| 192 } | 192 } |
| 193 #endif | 193 #endif |
| 194 | 194 |
| 195 } // namespace internal | 195 } // namespace internal |
| 196 | 196 |
| 197 } // namespace WTF | 197 } // namespace WTF |
| OLD | NEW |