Skip to content

Commit

Permalink
hp malloc statistics: fix incorrect stats when configuring split buckets
Browse files Browse the repository at this point in the history
(cherry picked from commit b68cfba)
  • Loading branch information
liviuchircu committed Apr 1, 2014
1 parent 30654e5 commit a09410a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion mem/hp_malloc.c
Expand Up @@ -39,7 +39,6 @@
#include "../locking.h"

#include "hp_malloc.h"
#include "hp_malloc_stats.h"

extern unsigned long *mem_hash_usage;

Expand Down
4 changes: 2 additions & 2 deletions mem/hp_malloc_stats.c
Expand Up @@ -81,8 +81,8 @@ void update_shm_stats(struct hp_block *qm)
used_mem = in_use_frags * size;

qm->used += used_mem;
qm->real_used += used_mem + bucket->total_no * FRAG_OVERHEAD;
qm->total_fragments += bucket->total_no;
qm->real_used += used_mem + it->total_no * FRAG_OVERHEAD;
qm->total_fragments += it->total_no;
}
}
}
Expand Down

0 comments on commit a09410a

Please sign in to comment.