From 51025f1ac218811fb443dedea978af1551c52131 Mon Sep 17 00:00:00 2001 From: Daan Date: Wed, 21 Aug 2024 15:29:32 -0700 Subject: [PATCH 1/2] set lower parameters for guarded test --- test/test-stress.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test-stress.c b/test/test-stress.c index f9b3c9d6..25942299 100644 --- a/test/test-stress.c +++ b/test/test-stress.c @@ -33,6 +33,10 @@ static int ITER = 200; static int THREADS = 8; static int SCALE = 25; static int ITER = 20; +#elif defined(MI_DEBUG_GUARDED) // with debug guard pages reduce parameters to stay within the azure pipeline limits +static int THREADS = 8; +static int SCALE = 10; +static int ITER = 10; #else static int THREADS = 32; // more repeatable if THREADS <= #processors static int SCALE = 25; // scaling factor From bb3976760fa97b92f39580da7566a9ccd34378f5 Mon Sep 17 00:00:00 2001 From: Daan Date: Wed, 21 Aug 2024 15:34:22 -0700 Subject: [PATCH 2/2] add guarded build to test pipeline --- azure-pipelines.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e3689407..235b2bf5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -113,6 +113,11 @@ jobs: CXX: clang++ BuildType: debug-tsan-clang-cxx cmakeExtraArgs: -DCMAKE_BUILD_TYPE=RelWithDebInfo -DMI_USE_CXX=ON -DMI_DEBUG_TSAN=ON + Debug Guarded Clang: + CC: clang + CXX: clang + BuildType: debug-guarded-clang + cmakeExtraArgs: -DCMAKE_BUILD_TYPE=RelWithDebInfo -DMI_DEBUG_FULL=ON -DMI_DEBUG_GUARDED=ON steps: - task: CMake@1 @@ -124,6 +129,8 @@ jobs: - script: ctest --verbose --timeout 180 workingDirectory: $(BuildType) displayName: CTest + env: + MIMALLOC_DEBUG_GUARDED_MAX: 1024 # - upload: $(Build.SourcesDirectory)/$(BuildType) # artifact: mimalloc-ubuntu-$(BuildType)