make valgrind run under -DMM=0

even if it's not very helpful as CBQN requires being able to read garbage past allocation ends
This commit is contained in:
dzaima 2022-07-10 02:06:20 +03:00
parent eb5b32319f
commit a17d8004be
2 changed files with 1 additions and 5 deletions

View File

@ -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 <valgrind/valgrind.h>
#include <valgrind/memcheck.h>
static void pst(char* msg) {
VALGRIND_PRINTF_BACKTRACE("%s", msg);
}

View File

@ -1,7 +1,3 @@
#ifdef USE_VALGRIND
#include "../utils/valgrind.h"
#endif
#define buckets BN(buckets)
static void BN(free)(Value* x) {
onFree(x);