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

Unified Diff: third_party/tcmalloc/chromium/src/central_freelist.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/central_freelist.h
===================================================================
--- third_party/tcmalloc/chromium/src/central_freelist.h (revision 88335)
+++ third_party/tcmalloc/chromium/src/central_freelist.h (working copy)
@@ -34,8 +34,12 @@
#define TCMALLOC_CENTRAL_FREELIST_H_
#include "config.h"
+#include <stddef.h> // for size_t
+#ifdef HAVE_STDINT_H
+#include <stdint.h> // for int32_t
+#endif
+#include "base/spinlock.h"
#include "base/thread_annotations.h"
-#include "base/spinlock.h"
#include "common.h"
#include "span.h"
@@ -78,7 +82,12 @@
// number of TCEntries across size classes is fixed. Currently each size
// class is initially given one TCEntry which also means that the maximum any
// one class can have is kNumClasses.
+#ifdef TCMALLOC_SMALL_BUT_SLOW
+ // For the small memory model, the transfer cache is not used.
+ static const int kNumTransferEntries = 0;
+#else
static const int kNumTransferEntries = kNumClasses;
+#endif
// REQUIRES: lock_ is held
// Remove object from cache and return.
« no previous file with comments | « third_party/tcmalloc/chromium/src/base/vdso_support.cc ('k') | third_party/tcmalloc/chromium/src/central_freelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698