Index: Source/wtf/WTF.cpp |
diff --git a/Source/wtf/WTF.cpp b/Source/wtf/WTF.cpp |
index 24ca4b7514d464447bfaa740b0afba0e36383b9e..8565c0111f02cbc93e6a3bc22cbb06cf19ab018a 100644 |
--- a/Source/wtf/WTF.cpp |
+++ b/Source/wtf/WTF.cpp |
@@ -31,6 +31,7 @@ |
#include "config.h" |
#include "WTF.h" |
+#include "wtf/ArrayBufferContents.h" |
#include "wtf/Assertions.h" |
#include "wtf/FastMalloc.h" |
#include "wtf/Partitions.h" |
@@ -42,7 +43,7 @@ extern void initializeThreading(); |
bool s_initialized; |
bool s_shutdown; |
-void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction, TimeFunction systemTraceTimeFunction, HistogramEnumerationFunction histogramEnumerationFunction) |
+void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction, TimeFunction systemTraceTimeFunction, HistogramEnumerationFunction histogramEnumerationFunction, AdjustAmountOfExternalAllocatedMemoryFunction adjustAmountOfExternalAllocatedMemoryFunction) |
{ |
// WTF, and Blink in general, cannot handle being re-initialized, even if shutdown first. |
// Make that explicit here. |
@@ -53,6 +54,7 @@ void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncr |
setMonotonicallyIncreasingTimeFunction(monotonicallyIncreasingTimeFunction); |
setSystemTraceTimeFunction(systemTraceTimeFunction); |
Partitions::initialize(histogramEnumerationFunction); |
+ ArrayBufferContents::setAdjustAmoutOfExternalAllocatedMemoryFunction(adjustAmountOfExternalAllocatedMemoryFunction); |
initializeThreading(); |
} |