Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: third_party/tcmalloc/chromium/src/heap-profile-table.h

Issue 9963095: Reserve a dedicated arena for every construction of mmap_address_map. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: just rebased. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/tcmalloc/chromium/src/heap-profile-table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/chromium/src/heap-profile-table.h
diff --git a/third_party/tcmalloc/chromium/src/heap-profile-table.h b/third_party/tcmalloc/chromium/src/heap-profile-table.h
index 447943dc7355315174d59a42e78a1e8f6b5a008a..61493fc3013cabd73f3b4ca94838e2ffe828fb07 100644
--- a/third_party/tcmalloc/chromium/src/heap-profile-table.h
+++ b/third_party/tcmalloc/chromium/src/heap-profile-table.h
@@ -190,7 +190,13 @@ class HeapProfileTable {
// Refresh the internal mmap information from MemoryRegionMap. Results of
// FillOrderedProfile and IterateOrderedAllocContexts will contain mmap'ed
// memory regions as at calling RefreshMMapData.
- void RefreshMMapData();
+ // 'mmap_alloc' is an allocator for an address map. A function which calls
+ // LowLevelAlloc::AllocWithArena is expected like the constractor.
+ // 'mmap_dealloc' is a corresponding deallocator to 'mmap_alloc'.
+ // They are introduced to avoid expected memory fragmentation and bloat in
+ // an arena. A dedicated arena for this function allows disposing whole the
+ // arena after ClearMMapData.
+ void RefreshMMapData(Allocator mmap_alloc, DeAllocator mmap_dealloc);
// Clear the internal mmap information. Results of FillOrderedProfile and
// IterateOrderedAllocContexts won't contain mmap'ed memory regions after
« no previous file with comments | « no previous file | third_party/tcmalloc/chromium/src/heap-profile-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698