diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 01ad7a1b..f61c43e0 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) diff --git a/test/test-stress.c b/test/test-stress.c index 1e144bd0..156f9167 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