Changeset 116578 in webkit


Ignore:
Timestamp:
May 9, 2012 5:04:25 PM (12 years ago)
Author:
barraclough@apple.com
Message:

GC race condition in OpaqueJSClass::prototype
https://bugs.webkit.org/show_bug.cgi?id=86034

Build fix.

  • API/JSClassRef.cpp:

(OpaqueJSClass::prototype):

  • Eeeep, landed bad version of patch!
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSClassRef.cpp

    r116575 r116578  
    214214
    215215    // Recursive, but should be good enough for our purposes
    216     prototype = JSCallbackObject<JSNonFinalObject>::create(exec, exec->lexicalGlobalObject(), exec->lexicalGlobalObject()->callbackObjectStructure(), prototypeClass, &jsClassData); // set jsClassData as the object's private data, so it can clear our reference on destruction
     216    JSObject* prototype = JSCallbackObject<JSNonFinalObject>::create(exec, exec->lexicalGlobalObject(), exec->lexicalGlobalObject()->callbackObjectStructure(), prototypeClass, &jsClassData); // set jsClassData as the object's private data, so it can clear our reference on destruction
    217217    if (parentClass) {
    218218        if (JSObject* parentPrototype = parentClass->prototype(exec))
  • trunk/Source/JavaScriptCore/ChangeLog

    r116575 r116578  
     12012-05-09  Gavin Barraclough  <barraclough@apple.com>
     2
     3        GC race condition in OpaqueJSClass::prototype
     4        https://bugs.webkit.org/show_bug.cgi?id=86034
     5
     6        Build fix.
     7
     8        * API/JSClassRef.cpp:
     9        (OpaqueJSClass::prototype):
     10            - Eeeep, landed bad version of patch!
     11
    1122012-05-09  Gavin Barraclough  <barraclough@apple.com>
    213
Note: See TracChangeset for help on using the changeset viewer.