Changeset 37240 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 3, 2008, 9:09:37 AM (17 years ago)
Author:
Darin Adler
Message:

2008-10-03 Darin Adler <Darin Adler>

Suggested by Alexey Proskuryakov.

  • kjs/JSGlobalData.cpp: (JSC::JSGlobalData::~JSGlobalData): Remove call to heap.destroy() because it's too late to ref the JSGlobalData object once it's already being destroyed. In practice this is not a problem because WebCore's JSGlobalData is never destroyed and JSGlobalContextRelease takes care of calling heap.destroy() in advance.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r37235 r37240  
     12008-10-03  Darin Adler  <[email protected]>
     2
     3        Suggested by Alexey Proskuryakov.
     4
     5        * kjs/JSGlobalData.cpp:
     6        (JSC::JSGlobalData::~JSGlobalData): Remove call to heap.destroy() because
     7        it's too late to ref the JSGlobalData object once it's already being
     8        destroyed. In practice this is not a problem because WebCore's JSGlobalData
     9        is never destroyed and JSGlobalContextRelease takes care of calling
     10        heap.destroy() in advance.
     11
    1122008-10-02  Oliver Hunt  <[email protected]>
    213
  • trunk/JavaScriptCore/kjs/JSGlobalData.cpp

    r37215 r37240  
    9595JSGlobalData::~JSGlobalData()
    9696{
    97     heap.destroy();
     97    // By the time this is destroyed, heap.destroy() must already have been called.
     98
    9899    delete machine;
    99100#ifndef NDEBUG
Note: See TracChangeset for help on using the changeset viewer.