mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 899880 - Fix jemalloc3 so it works after bug 898558, which changed jemalloc's stats struct. r=glandium
This commit is contained in:
parent
f46dc128f3
commit
ada67088ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user