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

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

Issue 7671034: doubly-linked free-lists for thread caches and page heaps (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: code style fixes Created 9 years, 4 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/common.cc
diff --git a/third_party/tcmalloc/chromium/src/common.cc b/third_party/tcmalloc/chromium/src/common.cc
index b92e988e56c0164c304f6210eb60bcc8769fcb8f..a35d1a1173368a7430f1b38d9847af1d5bc74854 100644
--- a/third_party/tcmalloc/chromium/src/common.cc
+++ b/third_party/tcmalloc/chromium/src/common.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2008, Google Inc.
+// Copyright (c) 2011, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
@@ -162,7 +162,7 @@ void SizeMap::Init() {
if (sc <= 0 || sc >= kNumClasses) {
CRASH("Bad size class %d for %" PRIuS "\n", sc, size);
}
- if (sc > 1 && size <= class_to_size_[sc-1]) {
+ if (sc > FIRST_SIZE_CLASS && size <= class_to_size_[sc-1]) {
jar (doing other things) 2011/08/20 02:40:30 The name seems bad, since it is actually the first
bxx 2011/08/24 00:19:24 Done.
CRASH("Allocating unnecessarily large class %d for %" PRIuS
"\n", sc, size);
}

Powered by Google App Engine
This is Rietveld 408576698