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/jit/ExecutableAllocatorPosix.cpp

    r42676 r42705  
    3232#include <sys/mman.h>
    3333#include <unistd.h>
    34 
    35 #if PLATFORM(DARWIN)
    36 #include <mach/vm_statistics.h>
    37 #endif
    38 
    39 #if PLATFORM(DARWIN)
    40 // On Mac OS X, the VM subsystem allows tagging memory requested from mmap and vm_map
    41 // in order to aid tools that inspect system memory use.
    42 #if defined(VM_MEMORY_JAVASCRIPT_JIT_EXECUTABLE_ALLOCATOR)
    43 #define TAG_FOR_EXECUTABLEALLOCATOR_MEMORY VM_MAKE_TAG(VM_MEMORY_JAVASCRIPT_JIT_EXECUTABLE_ALLOCATOR)
    44 #else
    45 #define TAG_FOR_EXECUTABLEALLOCATOR_MEMORY VM_MAKE_TAG(64)
    46 #endif
    47 #else
    48 #define TAG_FOR_EXECUTABLEALLOCATOR_MEMORY -1
    49 #endif
     34#include <wtf/VMTags.h>
    5035
    5136namespace JSC {
     
    5843ExecutablePool::Allocation ExecutablePool::systemAlloc(size_t n)
    5944{
    60     ExecutablePool::Allocation alloc = { reinterpret_cast<char*>(mmap(NULL, n, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANON, TAG_FOR_EXECUTABLEALLOCATOR_MEMORY, 0)), n };
     45    ExecutablePool::Allocation alloc = { reinterpret_cast<char*>(mmap(NULL, n, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANON, VM_TAG_FOR_EXECUTABLEALLOCATOR_MEMORY, 0)), n };
    6146    return alloc;
    6247}
     
    7055}
    7156
    72 #undef TAG_FOR_EXECUTABLEALLOCATOR_MEMORY
    73 
    7457#endif // HAVE(ASSEMBLER)
Note: See TracChangeset for help on using the changeset viewer.