Ignore:
Timestamp:
Nov 29, 2007, 12:46:14 AM (17 years ago)
Author:
[email protected]
Message:

Merging updated system alloc and spinlock code from r38 of TCMalloc.

Reviewed by Geoff

This is needed as a precursor to the merge of TCMalloc proper.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r27711 r28135  
    498498static uint64_t metadata_system_bytes = 0;
    499499static void* MetaDataAlloc(size_t bytes) {
    500   void* result = TCMalloc_SystemAlloc(bytes);
     500  void* result = TCMalloc_SystemAlloc(bytes, 0);
    501501  if (result != NULL) {
    502502    metadata_system_bytes += bytes;
     
    10401040  ASSERT(kMaxPages >= kMinSystemAlloc);
    10411041  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);
    10431043  if (ptr == NULL) {
    10441044    if (n < ask) {
    10451045      // Try growing just "n" pages
    10461046      ask = n;
    1047       ptr = TCMalloc_SystemAlloc(ask << kPageShift, kPageSize);
     1047      ptr = TCMalloc_SystemAlloc(ask << kPageShift, 0, kPageSize);
    10481048    }
    10491049    if (ptr == NULL) return false;
     
    13621362
    13631363void TCMalloc_Central_FreeList::Init(size_t cl) {
    1364   lock_.Init();
    13651364  size_class_ = cl;
    13661365  DLL_Init(&empty_);
Note: See TracChangeset for help on using the changeset viewer.