Ignore:
Timestamp:
Jul 1, 2008, 12:01:51 AM (17 years ago)
Author:
[email protected]
Message:

2008-06-30 Geoffrey Garen <[email protected]>

Reviewed by Oliver Hunt.


Fixed a global object leak caused by the switch to one register file.


Don't unconditionally mark the register file, since that logically
makes all global variables GC roots, even when their global object is
no longer reachable.


Instead, make the global object associated with the register file
responsible for marking the register file.

File:
1 edited

Legend:

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

    r34838 r34907  
    5959JSGlobalData::JSGlobalData()
    6060    : machine(new Machine)
    61     , heap(new Heap(machine))
     61    , heap(new Heap)
    6262#if USE(MULTIPLE_THREADS)
    6363    , arrayTable(new HashTable(KJS::arrayTable))
Note: See TracChangeset for help on using the changeset viewer.