From a17d8004be351622611b9a6d3cfb6533183facae Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 10 Jul 2022 02:06:20 +0300 Subject: [PATCH] make valgrind run under -DMM=0 even if it's not very helpful as CBQN requires being able to read garbage past allocation ends --- src/core/stuff.h | 2 +- src/opt/mm_buddyTemplate.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core/stuff.h b/src/core/stuff.h index 915a6c98..174cf395 100644 --- a/src/core/stuff.h +++ b/src/core/stuff.h @@ -215,8 +215,8 @@ static bool atomEqual(B w, B x) { // doesn't consume (not that that matters real #ifdef USE_VALGRIND + #include "../utils/valgrind.h" #include - #include static void pst(char* msg) { VALGRIND_PRINTF_BACKTRACE("%s", msg); } diff --git a/src/opt/mm_buddyTemplate.h b/src/opt/mm_buddyTemplate.h index 8dca290b..5036a4c2 100644 --- a/src/opt/mm_buddyTemplate.h +++ b/src/opt/mm_buddyTemplate.h @@ -1,7 +1,3 @@ -#ifdef USE_VALGRIND - #include "../utils/valgrind.h" -#endif - #define buckets BN(buckets) static void BN(free)(Value* x) { onFree(x);