diff options
author | Chris Palmer <palmer@chromium.org> | 2017-03-26 15:48:34 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-26 23:04:12 +0000 |
commit | e4b035b722ad69d4a4357c54cd3c9f1f8574b067 (patch) | |
tree | 1ef73460f84b03c2711c041d047db1d5131807b4 /core/fxcrt/fx_memory.h | |
parent | b8227824c221733e8636c42c3aee8ccff9efd719 (diff) | |
download | pdfium-e4b035b722ad69d4a4357c54cd3c9f1f8574b067.tar.xz |
Use PartitionAlloc for JavaScript ArrayBuffers and strings.
BUG=pdfium:681
Change-Id: I5073d80d9bd623b73e578d5ba2226c39c371bab0
Reviewed-on: https://pdfium-review.googlesource.com/3097
Commit-Queue: Chris Palmer <palmer@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_memory.h')
-rw-r--r-- | core/fxcrt/fx_memory.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fxcrt/fx_memory.h b/core/fxcrt/fx_memory.h index 0ad28ce896..c4d619efab 100644 --- a/core/fxcrt/fx_memory.h +++ b/core/fxcrt/fx_memory.h @@ -26,6 +26,11 @@ void FXMEM_DefaultFree(void* pointer, int flags); #include <memory> #include <new> +#include "third_party/base/allocator/partition_allocator/partition_alloc.h" + +extern pdfium::base::PartitionAllocatorGeneric gArrayBufferPartitionAllocator; +extern pdfium::base::PartitionAllocatorGeneric gStringPartitionAllocator; + NEVER_INLINE void FX_OutOfMemoryTerminate(); inline void* FX_SafeRealloc(void* ptr, size_t num_members, size_t member_size) { |