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

Unified Diff: Source/wtf/FastMalloc.h

Issue 15861022: Build WTF as dll in component build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix AutoDrainedPool ctor and ThreadSpecificThreadExit exports Created 7 years, 7 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 | « Source/wtf/DynamicAnnotations.h ('k') | Source/wtf/GregorianDateTime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/FastMalloc.h
diff --git a/Source/wtf/FastMalloc.h b/Source/wtf/FastMalloc.h
index ee3ce3822132a7d478b4d55d2947e284001cc0fb..b8b2b10c98d7987ee658a722258b92b230a3b9bc 100644
--- a/Source/wtf/FastMalloc.h
+++ b/Source/wtf/FastMalloc.h
@@ -21,21 +21,23 @@
#ifndef WTF_FastMalloc_h
#define WTF_FastMalloc_h
-#include <wtf/Platform.h>
-#include <wtf/PossiblyNull.h>
-#include <stdlib.h>
#include <new>
+#include <stdlib.h>
+
+#include "wtf/Platform.h"
+#include "wtf/PossiblyNull.h"
+#include "wtf/WTFExport.h"
namespace WTF {
// These functions call CRASH() if an allocation fails.
- void* fastMalloc(size_t);
- void* fastZeroedMalloc(size_t);
- void* fastCalloc(size_t numElements, size_t elementSize);
- void* fastRealloc(void*, size_t);
- char* fastStrDup(const char*);
- size_t fastMallocSize(const void*);
- size_t fastMallocGoodSize(size_t);
+ WTF_EXPORT void* fastMalloc(size_t);
+ WTF_EXPORT void* fastZeroedMalloc(size_t);
+ WTF_EXPORT void* fastCalloc(size_t numElements, size_t elementSize);
+ WTF_EXPORT void* fastRealloc(void*, size_t);
+ WTF_EXPORT char* fastStrDup(const char*);
+ WTF_EXPORT size_t fastMallocSize(const void*);
+ WTF_EXPORT size_t fastMallocGoodSize(size_t);
struct TryMallocReturnValue {
TryMallocReturnValue(void* data)
@@ -69,26 +71,26 @@ namespace WTF {
return returnValue;
}
- TryMallocReturnValue tryFastMalloc(size_t n);
- TryMallocReturnValue tryFastZeroedMalloc(size_t n);
- TryMallocReturnValue tryFastCalloc(size_t n_elements, size_t element_size);
- TryMallocReturnValue tryFastRealloc(void* p, size_t n);
+ WTF_EXPORT TryMallocReturnValue tryFastMalloc(size_t n);
+ WTF_EXPORT TryMallocReturnValue tryFastZeroedMalloc(size_t n);
+ WTF_EXPORT TryMallocReturnValue tryFastCalloc(size_t n_elements, size_t element_size);
+ WTF_EXPORT TryMallocReturnValue tryFastRealloc(void* p, size_t n);
- void fastFree(void*);
+ WTF_EXPORT void fastFree(void*);
#ifndef NDEBUG
- void fastMallocForbid();
- void fastMallocAllow();
+ WTF_EXPORT void fastMallocForbid();
+ WTF_EXPORT void fastMallocAllow();
#endif
- void releaseFastMallocFreeMemory();
+ WTF_EXPORT void releaseFastMallocFreeMemory();
struct FastMallocStatistics {
size_t reservedVMBytes;
size_t committedVMBytes;
size_t freeListBytes;
};
- FastMallocStatistics fastMallocStatistics();
+ WTF_EXPORT FastMallocStatistics fastMallocStatistics();
// This defines a type which holds an unsigned integer and is the same
// size as the minimally aligned memory allocation.
« no previous file with comments | « Source/wtf/DynamicAnnotations.h ('k') | Source/wtf/GregorianDateTime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698