From 0870d346e16150606ada579bd857681a2b111c63 Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Thu, 19 Feb 2026 17:59:43 +0000 Subject: [PATCH] reduce stack size and remove multi-threaded test execution Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> --- .github/workflows/reusable-build-test-config.yml | 2 +- include/xrpl/beast/test/yield_to.h | 4 ++-- include/xrpl/core/Coro.ipp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/reusable-build-test-config.yml b/.github/workflows/reusable-build-test-config.yml index 39840fc082..6a2344589c 100644 --- a/.github/workflows/reusable-build-test-config.yml +++ b/.github/workflows/reusable-build-test-config.yml @@ -229,7 +229,7 @@ jobs: env: BUILD_NPROC: ${{ steps.nproc.outputs.nproc }} run: | - ./xrpld --unittest --unittest-jobs "${BUILD_NPROC}" + ./xrpld --unittest --unittest-jobs 1 - name: Debug failure (Linux) if: ${{ failure() && runner.os == 'Linux' && !inputs.build_only }} diff --git a/include/xrpl/beast/test/yield_to.h b/include/xrpl/beast/test/yield_to.h index b6c5bca3e3..52d9fb8ae0 100644 --- a/include/xrpl/beast/test/yield_to.h +++ b/include/xrpl/beast/test/yield_to.h @@ -22,10 +22,10 @@ namespace test { // Sanitizers significantly increase stack frame sizes // (TSAN ~3-5x, ASAN ~2-3x), requiring larger coroutine stacks. #if defined(__SANITIZE_THREAD__) || defined(__SANITIZE_ADDRESS__) -inline constexpr std::size_t yieldStackSize = 8 * 1024 * 1024; +inline constexpr std::size_t yieldStackSize = 4 * 1024 * 1024; #elif defined(__has_feature) #if __has_feature(thread_sanitizer) || __has_feature(address_sanitizer) -inline constexpr std::size_t yieldStackSize = 8 * 1024 * 1024; +inline constexpr std::size_t yieldStackSize = 4 * 1024 * 1024; #else inline constexpr std::size_t yieldStackSize = 2 * 1024 * 1024; #endif diff --git a/include/xrpl/core/Coro.ipp b/include/xrpl/core/Coro.ipp index 6f472251cc..f85d9d2123 100644 --- a/include/xrpl/core/Coro.ipp +++ b/include/xrpl/core/Coro.ipp @@ -9,10 +9,10 @@ namespace xrpl { // Sanitizers significantly increase stack frame sizes // (TSAN ~3-5x, ASAN ~2-3x), requiring larger coroutine stacks. #if defined(__SANITIZE_THREAD__) || defined(__SANITIZE_ADDRESS__) -inline constexpr std::size_t coroStackSize = megabytes(8); +inline constexpr std::size_t coroStackSize = megabytes(4); #elif defined(__has_feature) #if __has_feature(thread_sanitizer) || __has_feature(address_sanitizer) -inline constexpr std::size_t coroStackSize = megabytes(8); +inline constexpr std::size_t coroStackSize = megabytes(4); #else inline constexpr std::size_t coroStackSize = megabytes(1); #endif