Ignore:
Timestamp:
Jun 30, 2005, 11:19:42 AM (20 years ago)
Author:
kdecker
Message:

Reviewed by rjw.

fixed: <rdar://problem/4166838> failed assertion in`Interpreter::lockCount() > 0

no layout test added; this is in the bindings code.

  • bindings/objc/WebScriptObject.mm: (+[WebScriptObject _convertValueToObjcValue:KJS::originExecutionContext:Bindings::executionContext:Bindings::]): make sure to lock and unlock the interpreter around allocations.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bindings/objc/WebScriptObject.mm

    r9427 r9549  
    422422        Interpreter *intepreter = executionContext->interpreter();
    423423        ExecState *exec = intepreter->globalExec();
    424 
    425         if (objectImp->classInfo() != &KJS::RuntimeObjectImp::info) {
     424        Interpreter::lock();
     425       
     426        if (objectImp->classInfo() != &KJS::RuntimeObjectImp::info) {
    426427            Value runtimeObject = objectImp->get(exec, "__apple_runtime_object");
    427428            if (!runtimeObject.isNull() && runtimeObject.type() == KJS::ObjectType)
    428429                objectImp = static_cast<RuntimeObjectImp*>(runtimeObject.imp());
    429430        }
     431       
     432        Interpreter::unlock();
    430433
    431434        if (objectImp->classInfo() == &KJS::RuntimeObjectImp::info) {
Note: See TracChangeset for help on using the changeset viewer.