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

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

Issue 730443002: Oilpan: We shouldn't calculate allocationSizeFromSize twice (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | « no previous file | Source/platform/heap/Heap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Heap.h
diff --git a/Source/platform/heap/Heap.h b/Source/platform/heap/Heap.h
index 6c4781dec79f3c8180ed80eb1a2ec8bec88f4669..50955889aa27a258b004efcf5e75e30412815cac 100644
--- a/Source/platform/heap/Heap.h
+++ b/Source/platform/heap/Heap.h
@@ -816,7 +816,7 @@ public:
private:
void addPageToHeap(const GCInfo*);
- PLATFORM_EXPORT Address outOfLineAllocate(size_t, const GCInfo*);
+ PLATFORM_EXPORT Address outOfLineAllocate(size_t payloadSize, size_t allocationSize, const GCInfo*);
static size_t allocationSizeFromSize(size_t);
PLATFORM_EXPORT Address allocateLargeObject(size_t, const GCInfo*);
Address currentAllocationPoint() const { return m_currentAllocationPoint; }
@@ -1402,7 +1402,7 @@ Address ThreadHeap<Header>::allocate(size_t size, const GCInfo* gcInfo)
ASSERT(heapPageFromAddress(headerAddress + allocationSize - 1));
return result;
}
- return outOfLineAllocate(size, gcInfo);
+ return outOfLineAllocate(size, allocationSize, gcInfo);
}
template<typename T, typename HeapTraits>
« no previous file with comments | « no previous file | Source/platform/heap/Heap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698