| OLD | NEW |
| 1 // Copyright (c) 2005, 2007, Google Inc. | 1 // Copyright (c) 2005, 2007, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserv
ed. | 3 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserv
ed. |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
| 10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // goes from about 1100 ns to about 300 ns. | 75 // goes from about 1100 ns to about 300 ns. |
| 76 | 76 |
| 77 #include "config.h" | 77 #include "config.h" |
| 78 #include "wtf/FastMalloc.h" | 78 #include "wtf/FastMalloc.h" |
| 79 | 79 |
| 80 #include "wtf/Assertions.h" | 80 #include "wtf/Assertions.h" |
| 81 #include "wtf/CPU.h" | 81 #include "wtf/CPU.h" |
| 82 #include "wtf/StdLibExtras.h" | 82 #include "wtf/StdLibExtras.h" |
| 83 #include "wtf/UnusedParam.h" | 83 #include "wtf/UnusedParam.h" |
| 84 | 84 |
| 85 #if OS(DARWIN) |
| 86 #include <AvailabilityMacros.h> |
| 87 #endif |
| 88 |
| 85 #include <limits> | 89 #include <limits> |
| 86 #if OS(WINDOWS) | 90 #if OS(WINDOWS) |
| 87 #include <windows.h> | 91 #include <windows.h> |
| 88 #else | 92 #else |
| 89 #include <pthread.h> | 93 #include <pthread.h> |
| 90 #endif | 94 #endif |
| 91 #include <string.h> | 95 #include <string.h> |
| 92 | 96 |
| 93 #ifndef NO_TCMALLOC_SAMPLES | 97 #ifndef NO_TCMALLOC_SAMPLES |
| 94 #define NO_TCMALLOC_SAMPLES | 98 #define NO_TCMALLOC_SAMPLES |
| (...skipping 4061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4156 void FastMallocZone::init() | 4160 void FastMallocZone::init() |
| 4157 { | 4161 { |
| 4158 static FastMallocZone zone(pageheap, &thread_heaps, static_cast<TCMalloc_Cen
tral_FreeListPadded*>(central_cache), &span_allocator, &threadheap_allocator); | 4162 static FastMallocZone zone(pageheap, &thread_heaps, static_cast<TCMalloc_Cen
tral_FreeListPadded*>(central_cache), &span_allocator, &threadheap_allocator); |
| 4159 } | 4163 } |
| 4160 | 4164 |
| 4161 #endif // OS(DARWIN) | 4165 #endif // OS(DARWIN) |
| 4162 | 4166 |
| 4163 } // namespace WTF | 4167 } // namespace WTF |
| 4164 | 4168 |
| 4165 #endif // FORCE_SYSTEM_MALLOC | 4169 #endif // FORCE_SYSTEM_MALLOC |
| OLD | NEW |