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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp

Issue 2682943002: Create a dedicated partition for array buffers (Closed)
Patch Set: temp Created 3 years, 10 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 | « third_party/WebKit/Source/wtf/allocator/Partitions.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp
index 6b92d6f0eda3dfe31d1013c8e5a4c4209d5abf62..30fbd6188a7edeb9d1cd57ceefebf55114d00c69 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp
+++ b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp
@@ -112,7 +112,7 @@ void ArrayBufferContents::allocateMemoryWithFlags(size_t size,
int flags,
void*& data) {
data = PartitionAllocGenericFlags(
- WTF::Partitions::bufferPartition(), flags, size,
+ Partitions::arrayBufferPartition(), flags, size,
WTF_HEAP_PROFILER_TYPE_NAME(ArrayBufferContents));
if (policy == ZeroInitialize && data)
memset(data, '\0', size);
@@ -131,7 +131,7 @@ void ArrayBufferContents::allocateMemoryOrNull(size_t size,
}
void ArrayBufferContents::freeMemory(void* data, size_t size) {
- Partitions::bufferFree(data);
+ PartitionFreeGeneric(Partitions::arrayBufferPartition(), data);
}
ArrayBufferContents::DataHolder::DataHolder()
« no previous file with comments | « third_party/WebKit/Source/wtf/allocator/Partitions.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698