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

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

Issue 840223002: Oilpan: Remove duplicated code between HeapPage and LargeObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« Source/platform/heap/Heap.cpp ('K') | « Source/platform/heap/ThreadState.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/ThreadState.cpp
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
index 5d03d506b62c6953bf005dcc9baac1643bbe83a4..d5e221ad3a9ce9ba86e81df00e00b26680cf15db 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -322,8 +322,9 @@ ThreadState::ThreadState()
s_mainThreadUnderestimatedStackSize = getUnderestimatedStackSize() - sizeof(void*);
}
- for (int heapIndex = 0; heapIndex < NumberOfHeaps; heapIndex++)
- m_heaps[heapIndex] = new ThreadHeap(this, heapIndex);
+ for (int heapIndex = 0; heapIndex < LargeObjectHeap; heapIndex++)
+ m_heaps[heapIndex] = new ThreadHeapForHeapPage(this, heapIndex);
+ m_heaps[LargeObjectHeap] = new ThreadHeapForLargeObject(this, LargeObjectHeap);
m_weakCallbackStack = new CallbackStack();
}
« Source/platform/heap/Heap.cpp ('K') | « Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698