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 <[EMAIL PROTECTED]>, "\"Programmer\""
2002-03-25  Ognyan Kulev <[EMAIL PROTECTED]>

        * hurdmalloc.c: The value of NBUCKETS is now dependent on
        LOG2_MIN_SIZE.
--- hurdmalloc.c.patched-realloc        Mon Mar 25 19:47:19 2002
+++ hurdmalloc.c        Mon Mar 25 20:13:20 2002
@@ -195,7 +195,7 @@ typedef struct free_list {
  * HEADER_SIZE bytes available to user.  Size argument to malloc is a signed
  * integer for sanity checking, so largest block size is 2^31.
  */
-#define NBUCKETS       29
+#define NBUCKETS       (31 - LOG2_MIN_SIZE + 1)
 
 static struct free_list malloc_free_list[NBUCKETS];
 

Reply via email to