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

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

Issue 1157933002: Oilpan: introduce eager finalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Parameterize Heap::poisonHeap() over ObjectsToPoison Created 5 years, 7 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
« no previous file with comments | « Source/platform/heap/HeapAllocator.h ('k') | Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/HeapTerminatedArray.h
diff --git a/Source/platform/heap/HeapTerminatedArray.h b/Source/platform/heap/HeapTerminatedArray.h
index b479a6e8899e1def51b635f072a7fc465bd98e20..11fc6e854f58bf8fd754592c123998a7026cf636 100644
--- a/Source/platform/heap/HeapTerminatedArray.h
+++ b/Source/platform/heap/HeapTerminatedArray.h
@@ -33,7 +33,7 @@ private:
static PassPtr create(size_t capacity)
{
- return reinterpret_cast<HeapTerminatedArray*>(Heap::allocate<HeapTerminatedArray>(capacity * sizeof(T)));
+ return reinterpret_cast<HeapTerminatedArray*>(Heap::allocate<HeapTerminatedArray>(capacity * sizeof(T), IsEagerlyFinalizedType<T>::value));
}
static PassPtr resize(PassPtr ptr, size_t capacity)
« no previous file with comments | « Source/platform/heap/HeapAllocator.h ('k') | Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698