summaryrefslogtreecommitdiff
path: root/pkmem.h
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2024-11-15 08:54:19 -0500
committerJonathan Bradley <jcb@pikum.xyz>2024-11-15 09:37:14 -0500
commit41ce960b60bbcf2c3d1a91828bd8ea7bc50a4f2d (patch)
treebdb958d078212ad678e21446b61066da175b1de7 /pkmem.h
parentbeb4e413fec775f4c5a2837644c51071e9fc86bf (diff)
pk.h.in: add module descriptions and impl options
Diffstat (limited to 'pkmem.h')
-rw-r--r--pkmem.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkmem.h b/pkmem.h
index 5adc9ea..e0b544d 100644
--- a/pkmem.h
+++ b/pkmem.h
@@ -120,6 +120,10 @@ static inline void pkmem_stupid_header_warnings() { (void)stdout; }
*/
#endif
+#ifndef PK_MAX_BUCKET_COUNT
+# define PK_MAX_BUCKET_COUNT 8
+#endif
+
struct pk_memblock {
char* data;
size_t size;
@@ -152,7 +156,7 @@ struct pk_membucket {
bool transient;
};
-static struct pk_membucket pk_buckets[8];
+static struct pk_membucket pk_buckets[PK_MAX_BUCKET_COUNT];
static int64_t pk_bucket_head = 0;
#ifdef PK_MEMORY_DEBUGGER