diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2002-12-19 23:23:20 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2002-12-19 23:23:20 +0000 |
commit | 914d31686b01a1a05c8b081efea7c681db61b801 (patch) | |
tree | 9f6aea8d1dfc9e81e8a0523ca73fac3366e0e0ca | |
parent | 86fea6be59ad2f1fb3bb539eb35ae7bf9ce276c0 (diff) |
Notes
-rw-r--r-- | lib/libstand/zalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libstand/zalloc.c b/lib/libstand/zalloc.c index e83fccb8ced36..aa8ccd03c0fac 100644 --- a/lib/libstand/zalloc.c +++ b/lib/libstand/zalloc.c @@ -247,22 +247,22 @@ zextendPool(MemPool *mp, void *base, iaddr_t bytes) mp->mp_Base = base; mp->mp_Used = bytes; mp->mp_End = (char *)base + bytes; + mp->mp_Size = bytes; } else { void *pend = (char *)mp->mp_Base + mp->mp_Size; if (base < mp->mp_Base) { - /* mp->mp_Size += (char *)mp->mp_Base - (char *)base; */ + mp->mp_Size += (char *)mp->mp_Base - (char *)base; mp->mp_Used += (char *)mp->mp_Base - (char *)base; mp->mp_Base = base; } base = (char *)base + bytes; if (base > pend) { - /* mp->mp_Size += (char *)base - (char *)pend; */ + mp->mp_Size += (char *)base - (char *)pend; mp->mp_Used += (char *)base - (char *)pend; mp->mp_End = (char *)base; } } - mp->mp_Size += bytes; } #ifdef ZALLOCDEBUG |