diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-06 22:47:05 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-06 22:47:05 +0100 |
commit | e836796365fdcd389aaa0fd7deed34e4f21e7334 (patch) | |
tree | f009bc7837e91b09b6e8fa39abce1b8d957d75a8 /sys/include | |
parent | c065eadb535347661079b93ef4b77739ec40a064 (diff) |
pool: use uintptr for pool size
note, arenas and blocks still use ulong for sizes. so
we have to check for overflow when attempting to merge
arenas.
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/pool.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/include/pool.h b/sys/include/pool.h index 95c300125..1442e9536 100644 --- a/sys/include/pool.h +++ b/sys/include/pool.h @@ -1,11 +1,11 @@ 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 */ |