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

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

Issue 9323026: [NOT TO COMMIT!] r109: Diff of the current tcmalloc from the original google-perftools r109. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 11 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/thread_cache.h
diff --git a/third_party/tcmalloc/chromium/src/thread_cache.h b/third_party/tcmalloc/chromium/src/thread_cache.h
index 1742d5ba54e57fad4fea8e1612f7ce4a83be29f9..9220aabeace610bf65918f509caee186a6c3d27f 100644
--- a/third_party/tcmalloc/chromium/src/thread_cache.h
+++ b/third_party/tcmalloc/chromium/src/thread_cache.h
@@ -42,16 +42,10 @@
#include <stdint.h> // for uint32_t, uint64_t
#endif
#include <sys/types.h> // for ssize_t
-#include "common.h"
-#include "linked_list.h"
-#include "maybe_threads.h"
-#include "page_heap_allocator.h"
-#include "sampler.h"
-#include "static_vars.h"
-
#include "common.h" // for SizeMap, kMaxSize, etc
+#include "free_list.h" // for FL_Pop, FL_PopRange, etc
#include "internal_logging.h" // for ASSERT, etc
-#include "linked_list.h" // for SLL_Pop, SLL_PopRange, etc
+#include "maybe_threads.h"
#include "page_heap_allocator.h" // for PageHeapAllocator
#include "sampler.h" // for Sampler
#include "static_vars.h" // for Static
@@ -198,7 +192,7 @@ class ThreadCache {
void clear_lowwatermark() { lowater_ = length_; }
void Push(void* ptr) {
- SLL_Push(&list_, ptr);
+ FL_Push(&list_, ptr);
length_++;
}
@@ -206,16 +200,16 @@ class ThreadCache {
ASSERT(list_ != NULL);
length_--;
if (length_ < lowater_) lowater_ = length_;
- return SLL_Pop(&list_);
+ return FL_Pop(&list_);
}
void PushRange(int N, void *start, void *end) {
- SLL_PushRange(&list_, start, end);
+ FL_PushRange(&list_, start, end);
length_ += N;
}
void PopRange(int N, void **start, void **end) {
- SLL_PopRange(&list_, N, start, end);
+ FL_PopRange(&list_, N, start, end);
ASSERT(length_ >= N);
length_ -= N;
if (length_ < lowater_) lowater_ = length_;
« no previous file with comments | « third_party/tcmalloc/chromium/src/third_party/valgrind.h ('k') | third_party/tcmalloc/chromium/src/thread_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698