diff --git a/gfx/layers/ipc/CompositorThread.cpp b/gfx/layers/ipc/CompositorThread.cpp index 36a211f8be22..d96ae0570d47 100644 --- a/gfx/layers/ipc/CompositorThread.cpp +++ b/gfx/layers/ipc/CompositorThread.cpp @@ -51,17 +51,11 @@ CompositorThreadHolder::CreateCompositorThread() { MOZ_ASSERT(!sCompositorThreadHolder, "The compositor thread has already been started!"); - // This is 320K, which is higher than the default 256K. - // Increased to work the stack overflow in the Intel Vulkan driver - // initialization https://bugzilla.mozilla.org/show_bug.cgi?id=1716120 - const uint32_t stackSize = 320 << 10; - nsCOMPtr compositorThread; nsresult rv = NS_NewNamedThread( "Compositor", getter_AddRefs(compositorThread), NS_NewRunnableFunction( - "CompositorThreadHolder::CompositorThreadHolderSetup", - []() { + "CompositorThreadHolder::CompositorThreadHolderSetup", []() { sBackgroundHangMonitor = new mozilla::BackgroundHangMonitor( "Compositor", /* Timeout values are powers-of-two to enable us get better @@ -75,8 +69,7 @@ CompositorThreadHolder::CreateCompositorThread() { 2048); nsCOMPtr thread = NS_GetCurrentThread(); static_cast(thread.get())->SetUseHangMonitor(true); - }), - stackSize); + })); if (NS_FAILED(rv)) { return nullptr;