Skip to content

Commit

Permalink
hp malloc: fix pkg max_real_used computation in hp_info()
Browse files Browse the repository at this point in the history
	* update_shm_stats() should not be called at all
(cherry picked from commit e56f327)
  • Loading branch information
liviuchircu committed Apr 4, 2014
1 parent 3155d87 commit 8c1f51d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mem/hp_malloc.c
Expand Up @@ -1073,8 +1073,10 @@ void hp_info(struct hp_block *qm, struct mem_info *info)
info->total_size = qm->size;
info->min_frag = MIN_FRAG_SIZE;

#ifdef HP_MALLOC_FAST_STATS
if (stats_are_expired(qm))
update_shm_stats(qm);
#endif

info->used = qm->used;
info->real_used = qm->real_used;
Expand Down

0 comments on commit 8c1f51d

Please sign in to comment.