Ignore:
Timestamp:
Mar 3, 2010, 4:22:16 PM (15 years ago)
Author:
[email protected]
Message:

Add virtual memory tags for TCMalloc and WebCore's purgeable buffers.

Reviewed by Geoff Garen.

JavaScriptCore:

  • wtf/TCSystemAlloc.cpp:

(TryMmap): Use the VM tag.

  • wtf/VMTags.h: Make use of VM_MEMORY_TCMALLOC and VM_MEMORY_WEBCORE_PURGEABLE_BUFFERS.

WebCore:

  • platform/mac/PurgeableBufferMac.cpp:

(WebCore::PurgeableBuffer::create): Use the VM tag.

File:
1 edited

Legend:

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

    r52791 r55483  
    3939#include "TCSpinLock.h"
    4040#include "UnusedParam.h"
     41#include "VMTags.h"
    4142
    4243#if HAVE(STDINT_H)
     
    179180                      PROT_READ | PROT_WRITE,
    180181                      MAP_PRIVATE|MAP_ANONYMOUS,
    181                       -1, 0);
     182                      VM_TAG_FOR_TCMALLOC_MEMORY, 0);
    182183  if (result == reinterpret_cast<void*>(MAP_FAILED)) {
    183184    mmap_failure = true;
Note: See TracChangeset for help on using the changeset viewer.