Changeset 10724 in webkit for trunk/JavaScriptCore/kxmlcore/TCSystemAlloc.cpp
- Timestamp:
- Oct 3, 2005, 10:57:13 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kxmlcore/TCSystemAlloc.cpp
r10701 r10724 67 67 // the mmap address space (1300MBish) are disjoint, so we need both allocators 68 68 // to get as much virtual memory as possible. 69 #ifndef KXC_CHANGES 69 70 static bool use_devmem = false; 71 #endif 70 72 static bool use_sbrk = false; 71 73 static bool use_mmap = true; … … 169 171 #endif /* HAVE_MMAP */ 170 172 173 #ifndef KXC_CHANGES 171 174 static void* TryDevMem(size_t size, size_t alignment) { 172 175 static bool initialized = false; … … 239 242 return reinterpret_cast<void*>(ptr); 240 243 } 244 #endif 241 245 242 246 void* TCMalloc_SystemAlloc(size_t size, size_t alignment) { … … 255 259 // more trying all allocators even if they failed before. 256 260 for (int i = 0; i < 2; i++) { 261 262 #ifndef KXC_CHANGES 257 263 if (use_devmem && !devmem_failure) { 258 264 void* result = TryDevMem(size, alignment); 259 265 if (result != NULL) return result; 260 266 } 267 #endif 261 268 262 269 #ifdef HAVE_SBRK
Note:
See TracChangeset
for help on using the changeset viewer.