Ignore:
Timestamp:
Apr 21, 2009, 12:23:10 AM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2009-04-20 Geoffrey Garen <[email protected]>

Reviewed by Mark Rowe.


Tiger crash fix: Put VM tags in their own header file, and fixed up the
#ifdefs so they're not used on Tiger.

  • JavaScriptCore.xcodeproj/project.pbxproj:
  • interpreter/RegisterFile.h: (JSC::RegisterFile::RegisterFile):
  • jit/ExecutableAllocatorFixedVMPool.cpp: (JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
  • jit/ExecutableAllocatorPosix.cpp: (JSC::ExecutablePool::systemAlloc):
  • runtime/Collector.cpp: (JSC::allocateBlock):
  • wtf/VMTags.h: Added.

JavaScriptGlue:

2009-04-20 Geoffrey Garen <[email protected]>

Reviewed by Mark Rowe.

Tiger crash fix: Put VM tags in their own header file, and fixed up the
#ifdefs so they're not used on Tiger.

  • ForwardingHeaders/wtf/VMTags.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/HashTraits.h.

WebCore:

2009-04-20 Geoffrey Garen <[email protected]>

Reviewed by Mark Rowe.

Tiger crash fix: Put VM tags in their own header file, and fixed up the
#ifdefs so they're not used on Tiger.

  • ForwardingHeaders/wtf/VMTags.h: Copied from WebCore/ForwardingHeaders/wtf/HashTraits.h.

WebKit/mac:

2009-04-20 Geoffrey Garen <[email protected]>

Reviewed by Mark Rowe.

Tiger crash fix: Put VM tags in their own header file, and fixed up the
#ifdefs so they're not used on Tiger.

  • ForwardingHeaders/wtf/VMTags.h: Copied from ForwardingHeaders/wtf/HashTraits.h.
File:
1 edited

Legend:

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

    r42676 r42705  
    3838#include <wtf/HashCountedSet.h>
    3939#include <wtf/UnusedParam.h>
     40#include <wtf/VMTags.h>
    4041
    4142#if PLATFORM(DARWIN)
     
    4647#include <mach/thread_act.h>
    4748#include <mach/vm_map.h>
    48 #include <mach/vm_statistics.h>
    4949
    5050#elif PLATFORM(WIN_OS)
     
    7474#define DEBUG_COLLECTOR 0
    7575#define COLLECT_ON_EVERY_ALLOCATION 0
    76 
    77 #if PLATFORM(DARWIN)
    78 // On Mac OS X, the VM subsystem allows tagging memory requested from mmap and vm_map
    79 // in order to aid tools that inspect system memory use.
    80 #if defined(VM_MEMORY_JAVASCRIPT_CORE)
    81 #define TAG_FOR_COLLECTOR_MEMORY VM_MAKE_TAG(VM_MEMORY_JAVASCRIPT_CORE)
    82 #else
    83 #define TAG_FOR_COLLECTOR_MEMORY VM_MAKE_TAG(63)
    84 #endif
    85 #endif
    8676
    8777using std::max;
     
    195185    vm_address_t address = 0;
    196186    // FIXME: tag the region as a JavaScriptCore heap when we get a registered VM tag: <rdar://problem/6054788>.
    197     vm_map(current_task(), &address, BLOCK_SIZE, BLOCK_OFFSET_MASK, VM_FLAGS_ANYWHERE | TAG_FOR_COLLECTOR_MEMORY, MEMORY_OBJECT_NULL, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT);
     187    vm_map(current_task(), &address, BLOCK_SIZE, BLOCK_OFFSET_MASK, VM_FLAGS_ANYWHERE | VM_TAG_FOR_COLLECTOR_MEMORY, MEMORY_OBJECT_NULL, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT);
    198188#elif PLATFORM(SYMBIAN)
    199189    // no memory map in symbian, need to hack with fastMalloc
     
    11361126
    11371127} // namespace JSC
    1138 
    1139 #if PLATFORM(DARWIN)
    1140 #undef TAG_FOR_COLLECTOR_MEMORY
    1141 #endif
Note: See TracChangeset for help on using the changeset viewer.