Changeset 47382 in webkit for trunk/JavaScriptCore/wtf/FastMalloc.cpp
- Timestamp:
- Aug 17, 2009, 1:20:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.