Ignore:
Timestamp:
Aug 11, 2008, 5:01:26 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Mark Rowe.

<rdar://problem/6130393> REGRESSION: PhotoBooth hangs after launching under TOT Webkit

  • API/JSContextRef.cpp: (JSGlobalContextRelease): Corrected a comment.
  • kjs/collector.cpp: (KJS::Heap::~Heap): Ensure that JSGlobalData is not deleted while sweeping the heap.
File:
1 edited

Legend:

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

    r35639 r35663  
    135135Heap::~Heap()
    136136{
     137    // The global object is not GC protected at this point, so sweeping may delete it (and thus the global data)
     138    // before other objects that may use the global data.
     139    RefPtr<JSGlobalData> protect(m_globalData);
     140
    137141    delete m_markListSet;
     142    m_markListSet = 0;
     143
    138144    sweep<PrimaryHeap>();
    139145    // No need to sweep number heap, because the JSNumber destructor doesn't do anything.
Note: See TracChangeset for help on using the changeset viewer.