Ignore:
Timestamp:
Jun 19, 2008, 10:29:29 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Darin.

Prepare JavaScript heap for being per-thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSContextRef.cpp

    r34581 r34659  
    4545
    4646    if (!globalObjectClass) {
    47         JSGlobalObject* globalObject = new JSGlobalObject;
     47        JSGlobalObject* globalObject = new (JSGlobalObject::Shared) JSGlobalObject;
    4848        return JSGlobalContextRetain(toGlobalRef(globalObject->globalExec()));
    4949    }
    5050
    51     JSGlobalObject* globalObject = new JSCallbackObject<JSGlobalObject>(globalObjectClass);
     51    JSGlobalObject* globalObject = new (JSGlobalObject::Shared) JSCallbackObject<JSGlobalObject>(globalObjectClass);
    5252    JSGlobalContextRef ctx = toGlobalRef(globalObject->globalExec());
    5353    JSValue* prototype = globalObjectClass->prototype(ctx);
Note: See TracChangeset for help on using the changeset viewer.