Ignore:
Timestamp:
Nov 22, 2005, 9:41:23 PM (20 years ago)
Author:
mjs
Message:

JavaScriptCore:

Reviewed by Geoff.

<rdar://problem/4139620> Seed: WebKit: hang when sending XMLHttpRequest if automatic proxy config is used

Also factored locking code completely into a separate class, and
added a convenient packaged way to temporarily drop locks.

  • JavaScriptCore.xcodeproj/project.pbxproj:
  • kjs/JSLock.cpp: Added. (KJS::initializeInterpreterLock): (KJS::InterpreterLock::lock): (KJS::InterpreterLock::unlock): (KJS::InterpreterLock::lockCount): (KJS::InterpreterLock::DropAllLocks::DropAllLocks): (KJS::InterpreterLock::DropAllLocks::~DropAllLocks):
  • kjs/JSLock.h: Added. (KJS::InterpreterLock::InterpreterLock): (KJS::InterpreterLock::~InterpreterLock):
  • kjs/internal.cpp:
  • kjs/internal.h:
  • kjs/interpreter.cpp:
  • kjs/interpreter.h:
  • kjs/protect.h:
  • kjs/testkjs.cpp: (TestFunctionImp::callAsFunction):

WebCore:

Reviewed by Geoff.

<rdar://problem/4139620> Seed: WebKit: hang when sending XMLHttpRequest if automatic proxy config is used

  • khtml/ecma/kjs_events.cpp: (KJS::JSLazyEventListener::parseCode):
  • khtml/ecma/xmlhttprequest.cpp: (KJS::XMLHttpRequest::send):
  • kwq/WebCoreJavaScript.mm:
File:
1 edited

Legend:

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

    r10713 r11284  
    4343{
    4444    assert(k);
    45     assert(InterpreterImp::lockCount() > 0);
     45    assert(InterpreterLock::lockCount() > 0);
    4646
    4747    if (!_table)
     
    7272{
    7373    assert(k);
    74     assert(InterpreterImp::lockCount() > 0);
     74    assert(InterpreterLock::lockCount() > 0);
    7575
    7676    if (SimpleNumber::is(k))
     
    122122{
    123123    assert(k);
    124     assert(InterpreterImp::lockCount() > 0);
     124    assert(InterpreterLock::lockCount() > 0);
    125125
    126126    if (SimpleNumber::is(k))
Note: See TracChangeset for help on using the changeset viewer.