typedef struct Pool Pool;
struct Pool {
char* name;
- ulong maxsize;
+ uintptr maxsize;
- ulong cursize;
- ulong curfree;
- ulong curalloc;
+ uintptr cursize;
+ uintptr curfree;
+ uintptr curalloc;
ulong minarena; /* smallest size of new arena */
ulong quantum; /* allocated blocks should be multiple of */
extern void poolcheck(Pool*);
extern int poolcompact(Pool*);
extern void poolblockcheck(Pool*, void*);
+extern void pooldump(Pool*);
extern Pool* mainmem;
extern Pool* imagmem;