Ignore:
Timestamp:
Aug 9, 2002, 5:04:39 PM (23 years ago)
Author:
mjs
Message:

Fix my last change to actually call the versions of the lock functions
that are recursive and initialize as needed.

  • kjs/internal.cpp: (InterpreterImp::InterpreterImp): (InterpreterImp::clear): (InterpreterImp::evaluate):
File:
1 edited

Legend:

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

    r1789 r1790  
    794794  // as a root set for garbage collection
    795795#ifdef APPLE_CHANGES
    796   pthread_mutex_lock(&interpreterLock);
     796  lockInterpreter();
    797797  m_interpreter = interp;
    798798#endif
     
    808808  }
    809809#ifdef APPLE_CHANGES
    810   pthread_mutex_unlock(&interpreterLock);
     810  unlockInterpreter();
    811811#endif
    812812
     
    955955  // remove from global chain (see init())
    956956#ifdef APPLE_CHANGES
    957   pthread_mutex_lock(&interpreterLock);
     957  lockInterpreter();
    958958#endif
    959959  next->prev = prev;
     
    967967  }
    968968#ifdef APPLE_CHANGES
    969   pthread_mutex_unlock(&interpreterLock);
     969  unlockInterpreter();
    970970#endif
    971971}
     
    10061006{
    10071007#ifdef APPLE_CHANGES
    1008   pthread_mutex_lock(&interpreterLock);
     1008  lockInterpreter();
    10091009#endif
    10101010  // prevent against infinite recursion
     
    10121012#ifdef APPLE_CHANGES
    10131013    Completion result = Completion(Throw,Error::create(globExec,GeneralError,"Recursion too deep"));
    1014     pthread_mutex_unlock(&interpreterLock);
     1014    unlockInterpreter();
    10151015    return result;
    10161016#else
     
    10441044    err.put(globExec,"sid",Number(sid));
    10451045#ifdef APPLE_CHANGES
    1046     pthread_mutex_unlock(&interpreterLock);
     1046    unlockInterpreter();
    10471047#endif
    10481048    return Completion(Throw,err);
     
    10891089
    10901090#ifdef APPLE_CHANGES
    1091     pthread_mutex_unlock(&interpreterLock);
     1091    unlockInterpreter();
    10921092#endif
    10931093  return res;
Note: See TracChangeset for help on using the changeset viewer.