| Index: Source/platform/heap/ThreadState.cpp
|
| diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
|
| index 08cae49ebe409d9424de89897115884a18a7c17b..eb3e42f4b538d4a5ce9f0f4768e40a7beef34b72 100644
|
| --- a/Source/platform/heap/ThreadState.cpp
|
| +++ b/Source/platform/heap/ThreadState.cpp
|
| @@ -255,7 +255,9 @@ ThreadState::ThreadState()
|
|
|
| if (isMainThread()) {
|
| s_mainThreadStackStart = reinterpret_cast<uintptr_t>(m_startOfStack) - sizeof(void*);
|
| - s_mainThreadUnderestimatedStackSize = StackFrameDepth::getUnderestimatedStackSize() - sizeof(void*);
|
| + size_t underestimatedStackSize = StackFrameDepth::getUnderestimatedStackSize();
|
| + if (underestimatedStackSize > sizeof(void*))
|
| + s_mainThreadUnderestimatedStackSize = underestimatedStackSize - sizeof(void*);
|
| }
|
|
|
| for (int heapIndex = 0; heapIndex < LargeObjectHeapIndex; heapIndex++)
|
|
|