X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpool.c;h=ca05039a7a011e5c3ca39aff172acca6df9ab675;hb=cb4033020c8a24d573814e6ac9192046bffdccac;hp=cce54af9cc1f8dc8b7ddd799de60e5f1440c7e65;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp diff --git a/src/pool.c b/src/pool.c index cce54af9cc..ca05039a7a 100644 --- a/src/pool.c +++ b/src/pool.c @@ -24,6 +24,7 @@ #include #include "alloc.h" #include "pool.h" +#include "str.h" /* Fast, low-overhead memory block suballocator. */ struct pool @@ -101,17 +102,15 @@ union align #define ALIGN_SIZE sizeof (union align) #endif -/* DISCRETE_BLOCKS may be declared as nonzero to prevent suballocation - of blocks. This is useful under memory debuggers like Checker - because it allows the source location of bugs to be more accurately - pinpointed. +/* DISCRETE_BLOCKS may be declared as nonzero to prevent + suballocation of blocks. This is useful under memory + debuggers like Checker or valgrind because it allows the + source location of bugs to be more accurately pinpointed. On the other hand, if we're testing the library, then we want to test the library's real functionality, not its crippled, slow, simplified functionality. */ -#if __CHECKER__ && !SELF_TEST -#define DISCRETE_BLOCKS 1 -#endif +/*#define DISCRETE_BLOCKS 1*/ /* Enable debug code if appropriate. */ #undef DEBUGGING