[libcxx-commits] [libcxx] [libc++][AIX] Fix force_thread_creation_failure by using RLIMIT_THREADS (PR #188787)
Jake Egan via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 30 21:07:01 PDT 2026
================
@@ -33,17 +32,21 @@
#if __has_include(<sys/resource.h>)
# include <sys/resource.h>
-# ifdef RLIMIT_NPROC
-void force_thread_creation_failure() {
- rlimit lim = {1, 1};
- assert(setrlimit(RLIMIT_NPROC, &lim) == 0);
-}
+// Using the macro TEST_RLIMIT to determine the type of RLIMIT based on the platform.
----------------
jakeegan wrote:
I don't think this comment is needed because the code is self-evident. Otherwise, LGTM
https://github.com/llvm/llvm-project/pull/188787
More information about the libcxx-commits
mailing list