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

Unified Diff: third_party/tcmalloc/chromium/src/memory_region_map.h

Issue 7050034: Merge google-perftools r109 (the current contents of third_party/tcmalloc/vendor) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: third_party/tcmalloc/chromium/src/memory_region_map.h
===================================================================
--- third_party/tcmalloc/chromium/src/memory_region_map.h (revision 88335)
+++ third_party/tcmalloc/chromium/src/memory_region_map.h (working copy)
@@ -39,6 +39,7 @@
#ifdef HAVE_PTHREAD
#include <pthread.h>
#endif
+#include <stddef.h>
#include <set>
#include "base/stl_allocator.h"
#include "base/spinlock.h"
@@ -98,10 +99,6 @@
// the number of Init() calls.
static bool Shutdown();
- // Check that our hooks are still in place and crash if not.
- // No need for locking.
- static void CheckMallocHooks();
-
// Locks to protect our internal data structures.
// These also protect use of arena_ if our Init() has been done.
// The lock is recursive.
@@ -231,7 +228,7 @@
static void *Allocate(size_t n) {
return LowLevelAlloc::AllocWithArena(n, arena_);
}
- static void Free(const void *p) {
+ static void Free(const void *p, size_t /* n */) {
LowLevelAlloc::Free(const_cast<void*>(p));
}
};
@@ -260,7 +257,6 @@
union RegionSetRep;
private:
-
// representation ===========================================================
// Counter of clients of this module that have called Init().
« no previous file with comments | « third_party/tcmalloc/chromium/src/memfs_malloc.cc ('k') | third_party/tcmalloc/chromium/src/memory_region_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698