Ignore:
Timestamp:
May 2, 2008, 3:07:53 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Geoffrey Garen.

https://bugs.webkit.org/show_bug.cgi?id=18826
Make JavaScript heap per-thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSGlobalObject.h

    r32652 r32807  
    167167        virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue* value, unsigned attributes);
    168168
    169         // Linked list of all global objects.
    170         static JSGlobalObject* head() { return s_head; }
     169        // Per-thread linked list of all global objects.
     170        static JSGlobalObject*& head();
    171171        JSGlobalObject* next() { return d()->next; }
    172172
     
    256256        static ThreadClassInfoHashTables* threadClassInfoHashTables();
    257257
     258        void* operator new(size_t);
     259
    258260    private:
    259261        void init(JSObject* thisValue);
     
    266268        void deleteActivationStack();
    267269        void checkActivationCount();
    268 
    269         static JSGlobalObject* s_head;
    270270    };
    271271
Note: See TracChangeset for help on using the changeset viewer.