Skip to content

Commit

Permalink
* malloc/malloc.c (largebin_index): Really have 32 buckets with 64 si…
Browse files Browse the repository at this point in the history
…zes.

2007-05-13  Ulrich Drepper  <drepper@redhat.com>
  • Loading branch information
Ulrich Drepper committed May 14, 2007
1 parent 366ad8f commit 1a31b58
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2007-05-13 Ulrich Drepper <drepper@redhat.com>
2007-05-14 Ulrich Drepper <drepper@redhat.com>

* malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes.

2007-05-13 Ulrich Drepper <drepper@redhat.com>
* malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
number of mmaps. n_mmaps_max is the target.
* malloc/hooks.c: Likewise.
2 changes: 1 addition & 1 deletion malloc/malloc.c
Original file line number Diff line number Diff line change
@@ -2134,7 +2134,7 @@ typedef struct malloc_chunk* mbinptr;
#define smallbin_index(sz) (((unsigned)(sz)) >> 3)

#define largebin_index(sz) \
(((((unsigned long)(sz)) >> 6) <= 32)? 56 + (((unsigned long)(sz)) >> 6): \
(((((unsigned long)(sz)) >> 6) <= 38)? 56 + (((unsigned long)(sz)) >> 6): \
((((unsigned long)(sz)) >> 9) <= 20)? 91 + (((unsigned long)(sz)) >> 9): \
((((unsigned long)(sz)) >> 12) <= 10)? 110 + (((unsigned long)(sz)) >> 12): \
((((unsigned long)(sz)) >> 15) <= 4)? 119 + (((unsigned long)(sz)) >> 15): \

0 comments on commit 1a31b58

Please sign in to comment.