Changeset 47382 in webkit
- Timestamp:
- Aug 17, 2009, 1:20:41 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r47338 r47382 1 2009-08-17 Xan Lopez <[email protected]> 2 3 Reviewed by Mark Rowe. 4 5 Fix build with FAST_MALLOC_MATCH_VALIDATION enabled. 6 7 * wtf/FastMalloc.cpp: 8 (WTF::fastMalloc): 9 (WTF::fastCalloc): 10 (WTF::fastRealloc): 11 1 12 2009-08-16 Holger Hans Peter Freyther <[email protected]> 2 13 -
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r47092 r47382 227 227 228 228 #if ENABLE(FAST_MALLOC_MATCH_VALIDATION) 229 void* result = tryFastMalloc(n); 229 TryMallocReturnValue returnValue = tryFastMalloc(n); 230 void* result; 231 returnValue.getValue(result); 230 232 #else 231 233 void* result = malloc(n); … … 265 267 266 268 #if ENABLE(FAST_MALLOC_MATCH_VALIDATION) 267 void* result = tryFastCalloc(n_elements, element_size); 269 TryMallocReturnValue returnValue = tryFastCalloc(n_elements, element_size); 270 void* result; 271 returnValue.getValue(result); 268 272 #else 269 273 void* result = calloc(n_elements, element_size); … … 324 328 325 329 #if ENABLE(FAST_MALLOC_MATCH_VALIDATION) 326 void* result = tryFastRealloc(p, n); 330 TryMallocReturnValue returnValue = tryFastRealloc(p, n); 331 void* result; 332 returnValue.getValue(result); 327 333 #else 328 334 void* result = realloc(p, n);
Note:
See TracChangeset
for help on using the changeset viewer.