Bug 899880 - Fix jemalloc3 so it works after bug 898558, which changed jemalloc's stats struct. r=glandium

This commit is contained in:
Justin Lebar 2013-08-01 16:37:54 -07:00
parent f46dc128f3
commit ada67088ce

View File

@ -76,10 +76,14 @@ jemalloc_stats_impl(jemalloc_stats_t *stats)
/* get the summation for all arenas, i == narenas */
CTL_I_GET("stats.arenas.0.pdirty", pdirty, narenas);
stats->allocated = allocated;
stats->mapped = mapped;
stats->dirty = pdirty * page;
stats->committed = active + stats->dirty;
stats->allocated = allocated;
stats->waste = active - allocated;
stats->page_cache = pdirty * page;
// We could get this value out of base.c::base_pages, but that really should
// be an upstream change, so don't worry about it for now.
stats->bookkeeping = 0;
}
MOZ_JEMALLOC_API void