Ignore:
Timestamp:
Apr 18, 2009, 7:14:58 PM (16 years ago)
Author:
[email protected]
Message:

2009-04-18 Sam Weinig <[email protected]>

Reviewed by Anders Carlsson.

Fix for <rdar://problem/6801555> Tag JavaScript memory on SnowLeopard

  • interpreter/RegisterFile.h: (JSC::RegisterFile::RegisterFile):
  • jit/ExecutableAllocatorFixedVMPool.cpp: (JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
  • jit/ExecutableAllocatorPosix.cpp: (JSC::ExecutablePool::systemAlloc):
  • runtime/Collector.cpp: (JSC::allocateBlock):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Collector.cpp

    r41854 r42649  
    4141#if PLATFORM(DARWIN)
    4242
     43#include <mach/mach_init.h>
    4344#include <mach/mach_port.h>
    44 #include <mach/mach_init.h>
    4545#include <mach/task.h>
    4646#include <mach/thread_act.h>
    4747#include <mach/vm_map.h>
     48#include <mach/vm_statistics.h>
    4849
    4950#elif PLATFORM(WIN_OS)
     
    182183{
    183184#if PLATFORM(DARWIN)
     185    #if defined(VM_MEMORY_JAVASCRIPT_CORE)
     186        #define TAG VM_MAKE_TAG(VM_MEMORY_JAVASCRIPT_JIT_REGISTER_FILE)
     187    #else
     188        #define TAG 0
     189    #endif
    184190    vm_address_t address = 0;
    185191    // FIXME: tag the region as a JavaScriptCore heap when we get a registered VM tag: <rdar://problem/6054788>.
    186     vm_map(current_task(), &address, BLOCK_SIZE, BLOCK_OFFSET_MASK, VM_FLAGS_ANYWHERE, MEMORY_OBJECT_NULL, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT);
     192    vm_map(current_task(), &address, BLOCK_SIZE, BLOCK_OFFSET_MASK, VM_FLAGS_ANYWHERE|TAG, MEMORY_OBJECT_NULL, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT);
    187193#elif PLATFORM(SYMBIAN)
    188194    // no memory map in symbian, need to hack with fastMalloc
Note: See TracChangeset for help on using the changeset viewer.