typedef struct Pool Pool;
struct Pool {
char* name;
- ulong maxsize; /* of entire Pool */
- ulong cursize; /* of Pool */
- ulong curfree; /* total free bytes in Pool */
- ulong curalloc; /* total allocated bytes in Pool */
+ uintptr maxsize; /* of entire Pool */
+ uintptr cursize; /* of Pool */
+ uintptr curfree; /* total free bytes in Pool */
+ uintptr curalloc; /* total allocated bytes in Pool */
ulong minarena; /* smallest size of new arena */
ulong quantum; /* allocated blocks should be multiple of */
ulong minblock; /* smallest newly allocated block */
};
.EE
.PP
-The pool obtains arenas of memory to manage by calling the the given
+The pool obtains arenas of memory to manage by calling the given
.B alloc
routine.
The total number of requested bytes will not exceed