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

Unified Diff: third_party/tcmalloc/chromium/src/common.cc

Issue 10499004: 1. A small fix of Windows VM size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | « third_party/tcmalloc/chromium/src/common.h ('k') | third_party/tcmalloc/chromium/src/pagemap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/chromium/src/common.cc
===================================================================
--- third_party/tcmalloc/chromium/src/common.cc (revision 138851)
+++ third_party/tcmalloc/chromium/src/common.cc (working copy)
@@ -193,6 +193,8 @@
// Metadata allocator -- keeps stats about how many bytes allocated.
static uint64_t metadata_system_bytes_ = 0;
+static uint64_t metadata_unmapped_bytes_ = 0;
+
void* MetaDataAlloc(size_t bytes) {
static size_t pagesize;
#ifdef HAVE_GETPAGESIZE
@@ -208,9 +210,13 @@
}
uint64_t metadata_system_bytes() { return metadata_system_bytes_; }
+uint64_t metadata_unmapped_bytes() { return metadata_unmapped_bytes_; }
-void increment_metadata_system_bytes(size_t bytes) {
- metadata_system_bytes_ += bytes;
+void update_metadata_system_bytes(int diff) {
+ metadata_system_bytes_ += diff;
}
+void update_metadata_unmapped_bytes(int diff) {
+ metadata_unmapped_bytes_ += diff;
+}
} // namespace tcmalloc
« no previous file with comments | « third_party/tcmalloc/chromium/src/common.h ('k') | third_party/tcmalloc/chromium/src/pagemap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698