Ignore:
Timestamp:
Jul 10, 2008, 10:55:26 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Mark Rowe.

Eliminate CollectorHeapIntrospector.

CollectorHeapIntrospector was added primarily in the hopes to improve leaks tool output,
a result that it didn't deliver. Also, it helped by labeling JSC heap regions as reported by
vmmap tool, but at the same time, it made them mislabeled as malloc'd ones - the correct
way to label mapped regions is to use a VM tag.

So, it makes more sense to remove it completely than to make it work with multiple heaps.

  • JavaScriptCore.exp:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • kjs/AllInOneFile.cpp:
  • kjs/InitializeThreading.cpp: (KJS::initializeThreading):
  • kjs/collector.cpp:
  • kjs/collector.h:
  • kjs/CollectorHeapIntrospector.cpp: Removed.
  • kjs/CollectorHeapIntrospector.h: Removed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/collector.cpp

    r35021 r35097  
    5050#include <mach/vm_map.h>
    5151
    52 #include "CollectorHeapIntrospector.h"
    53 
    5452#elif PLATFORM(WIN_OS)
    5553
     
    118116static NEVER_INLINE CollectorBlock* allocateBlock()
    119117{
    120 #if PLATFORM(DARWIN)   
     118#if PLATFORM(DARWIN)
    121119    vm_address_t address = 0;
     120    // FIXME: tag the region as a JavaScriptCore heap when we get a registered VM tag: <rdar://problem/6054788>.
    122121    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);
    123122#elif PLATFORM(WIN_OS)
     
    489488}
    490489
    491 #if PLATFORM(DARWIN)
    492 void Heap::initializeHeapIntrospector()
    493 {
    494     ASSERT(pthread_main_np());
    495     CollectorHeapIntrospector::init(&primaryHeap, &numberHeap);
    496 }
    497 #endif
    498490#endif
    499491
Note: See TracChangeset for help on using the changeset viewer.