summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-16 18:40:15 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-16 18:40:15 +0000
commitf1fae3cd1b9492cf9411dffd3c486b9672d8cc76 (patch)
treebee5d8b2528e714149d399163519f0fa35ec532b /fxjs
parent1b6fcaad0722fb586620efc974726dee3fb0f80f (diff)
downloadpdfium-f1fae3cd1b9492cf9411dffd3c486b9672d8cc76.tar.xz
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 <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cfx_v8.cpp7
1 files changed, 3 insertions, 4 deletions
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);
}