Changeset 28135 in webkit for trunk/JavaScriptCore/wtf/FastMalloc.cpp
- Timestamp:
- Nov 29, 2007, 12:46:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r27711 r28135 498 498 static uint64_t metadata_system_bytes = 0; 499 499 static void* MetaDataAlloc(size_t bytes) { 500 void* result = TCMalloc_SystemAlloc(bytes );500 void* result = TCMalloc_SystemAlloc(bytes, 0); 501 501 if (result != NULL) { 502 502 metadata_system_bytes += bytes; … … 1040 1040 ASSERT(kMaxPages >= kMinSystemAlloc); 1041 1041 Length ask = (n>kMinSystemAlloc) ? n : static_cast<Length>(kMinSystemAlloc); 1042 void* ptr = TCMalloc_SystemAlloc(ask << kPageShift, kPageSize);1042 void* ptr = TCMalloc_SystemAlloc(ask << kPageShift, 0, kPageSize); 1043 1043 if (ptr == NULL) { 1044 1044 if (n < ask) { 1045 1045 // Try growing just "n" pages 1046 1046 ask = n; 1047 ptr = TCMalloc_SystemAlloc(ask << kPageShift, kPageSize);1047 ptr = TCMalloc_SystemAlloc(ask << kPageShift, 0, kPageSize); 1048 1048 } 1049 1049 if (ptr == NULL) return false; … … 1362 1362 1363 1363 void TCMalloc_Central_FreeList::Init(size_t cl) { 1364 lock_.Init();1365 1364 size_class_ = cl; 1366 1365 DLL_Init(&empty_);
Note:
See TracChangeset
for help on using the changeset viewer.