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

Unified Diff: Source/platform/heap/Heap.cpp

Issue 761243003: Oilpan: remove unused tracking of freelist tails. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | « Source/platform/heap/Heap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Heap.cpp
diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp
index 9d9866da489a4dd2528155f6cd526cd97aaea2aa..a51a07f70a8924488ab3d3c40dd1aef0a36e82fe 100644
--- a/Source/platform/heap/Heap.cpp
+++ b/Source/platform/heap/Heap.cpp
@@ -845,8 +845,6 @@ void FreeList<Header>::addToFreeList(Address address, size_t size)
#endif
int index = bucketIndexForSize(size);
entry->link(&m_freeLists[index]);
- if (!m_lastFreeListEntries[index])
- m_lastFreeListEntries[index] = entry;
if (index > m_biggestFreeListIndex)
m_biggestFreeListIndex = index;
}
@@ -1520,10 +1518,8 @@ template<typename Header>
void FreeList<Header>::clear()
{
m_biggestFreeListIndex = 0;
- for (size_t i = 0; i < blinkPageSizeLog2; i++) {
+ for (size_t i = 0; i < blinkPageSizeLog2; i++)
m_freeLists[i] = 0;
- m_lastFreeListEntries[i] = 0;
- }
}
template<typename Header>
« no previous file with comments | « Source/platform/heap/Heap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698