[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Possible problems when MCHECK is defined
From: |
James Morrison |
Subject: |
Re: [PATCH] Possible problems when MCHECK is defined |
Date: |
Mon, 25 Mar 2002 10:50:04 -0800 (PST) |
--- Ognyan Kulev <ogi@fmi.uni-sofia.bg> wrote:
> Hi,
>
> In `libc/hurd/hurdmalloc.c:198' the value of NBUCKETS is defined as 29
> and this is correct when LOG2_MIN_SIZE is 3. But when MCHECK is defined
> LOG2_MIN_SIZE becomes 4 and NBUCKETS must be 28.
>
> Regards
> --
> Ognyan Kulev <ogi@fmi.uni-sofia.bg>, "\"Programmer\""
> +#define NBUCKETS (31 - LOG2_MIN_SIZE + 1)
Why are you using 31 + 1 instead of just 32?
=====
James Morrison
University of Waterloo
Computer Science - Digital Hardware
2A co-op
http://hurd.dyndns.org
Anyone refering this as 'Open Source' shall be eaten by a GNU
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/