[clang] [llvm] [llvm][clang] Allocate a new stack instead of spawning a new thread to get more stack space (PR #133173)
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 26 16:15:56 PDT 2025
================
@@ -0,0 +1,115 @@
+//===--- RunOnNewStack.cpp - Crash Recovery -------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Support/ProgramStack.h"
+#include "llvm/Config/config.h"
+#include "llvm/Support/Compiler.h"
+
+#ifdef HAVE_SYS_RESOURCE_H
+# include <sys/resource.h>
----------------
rnk wrote:
Can you include one of those `// for getrlimit` comments? I know they go stale quickly, but I find them helpful. I never know what system headers have what.
https://github.com/llvm/llvm-project/pull/133173
More information about the llvm-commits
mailing list