Index: third_party/WebKit/Source/platform/heap/HeapAllocator.h |
diff --git a/third_party/WebKit/Source/platform/heap/HeapAllocator.h b/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
index 4828ddb8d7accb736e3575742cec4d64f8066112..25c99121bf75a2bb40e6096e54a39538f152e608 100644 |
--- a/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
+++ b/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
@@ -41,7 +41,7 @@ public: |
ASSERT(state->isAllocationAllowed()); |
size_t gcInfoIndex = GCInfoTrait<HeapVectorBacking<T, VectorTraits<T>>>::index(); |
NormalPageHeap* heap = static_cast<NormalPageHeap*>(state->vectorBackingHeap(gcInfoIndex)); |
- return reinterpret_cast<T*>(heap->allocateObject(Heap::allocationSizeFromSize(size), gcInfoIndex)); |
+ return reinterpret_cast<T*>(heap->allocateObject(Heap::allocationSizeFromSize(size), gcInfoIndex, Heap::gcGeneration())); |
} |
template <typename T> |
static T* allocateExpandedVectorBacking(size_t size) |
@@ -50,7 +50,7 @@ public: |
ASSERT(state->isAllocationAllowed()); |
size_t gcInfoIndex = GCInfoTrait<HeapVectorBacking<T, VectorTraits<T>>>::index(); |
NormalPageHeap* heap = static_cast<NormalPageHeap*>(state->expandedVectorBackingHeap(gcInfoIndex)); |
- return reinterpret_cast<T*>(heap->allocateObject(Heap::allocationSizeFromSize(size), gcInfoIndex)); |
+ return reinterpret_cast<T*>(heap->allocateObject(Heap::allocationSizeFromSize(size), gcInfoIndex, Heap::gcGeneration())); |
} |
static void freeVectorBacking(void*); |
static bool expandVectorBacking(void*, size_t); |