From f1fae3cd1b9492cf9411dffd3c486b9672d8cc76 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 16 Oct 2018 18:40:15 +0000 Subject: Update PartitionAlloc from Chromium at r599712. BUG=pdfium:1170 Change-Id: I0f8dfb3d517beaa682a9ca7ad4831c5a7a10dc3b Reviewed-on: https://pdfium-review.googlesource.com/c/44073 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- fxjs/cfx_v8.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'fxjs') diff --git a/fxjs/cfx_v8.cpp b/fxjs/cfx_v8.cpp index 1d2dd94e27..26c9a43988 100644 --- a/fxjs/cfx_v8.cpp +++ b/fxjs/cfx_v8.cpp @@ -215,11 +215,10 @@ void* CFX_V8ArrayBufferAllocator::Allocate(size_t length) { void* CFX_V8ArrayBufferAllocator::AllocateUninitialized(size_t length) { if (length > kMaxAllowedBytes) return nullptr; - return pdfium::base::PartitionAllocGeneric( - gArrayBufferPartitionAllocator.root(), length, "CFX_V8ArrayBuffer"); + return gArrayBufferPartitionAllocator.root()->Alloc(length, + "CFX_V8ArrayBuffer"); } void CFX_V8ArrayBufferAllocator::Free(void* data, size_t length) { - pdfium::base::PartitionFreeGeneric(gArrayBufferPartitionAllocator.root(), - data); + gArrayBufferPartitionAllocator.root()->Free(data); } -- cgit v1.2.3