Changeset 27711 in webkit for trunk/JavaScriptCore/wtf/FastMalloc.cpp
- Timestamp:
- Nov 12, 2007, 12:00:29 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r27698 r27711 128 128 #endif // NDEBUG 129 129 130 #include <string.h> 131 132 namespace WTF { 133 void *fastZeroedMalloc(size_t n) 134 { 135 void *result = fastMalloc(n); 136 if (!result) 137 return 0; 138 memset(result, 0, n); 139 #ifndef WTF_CHANGES 140 MallocHook::InvokeNewHook(result, n); 141 #endif 142 return result; 143 } 144 145 } 146 130 147 #if FORCE_SYSTEM_MALLOC 131 148 … … 190 207 #include <stddef.h> 191 208 #include <stdio.h> 192 #include <string.h>193 209 #if COMPILER(MSVC) 194 210 #define WIN32_LEAN_AND_MEAN
Note:
See TracChangeset
for help on using the changeset viewer.